From 5f728cd9e58672ab0f182d5cdac0f53b9f9d7d96 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 31 Mar 2022 00:54:35 +0100 Subject: [PATCH] zcoord: Remove redundant to_string method This is the same as the Display impl. Suggested by clippy. Signed-off-by: Ian Jackson --- base/zcoord.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/base/zcoord.rs b/base/zcoord.rs index 624d06db..7c7847a2 100644 --- a/base/zcoord.rs +++ b/base/zcoord.rs @@ -508,10 +508,6 @@ impl ZCoord { let tail = self.tail(); str::from_utf8(tail).unwrap() } - - pub fn to_string(&self) -> String { - self.as_str().to_string() - } } impl Display for ZCoord { -- 2.30.2