chiark / gitweb /
zcoord: Remove redundant to_string method
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 30 Mar 2022 23:54:35 +0000 (00:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 30 Mar 2022 23:59:17 +0000 (00:59 +0100)
This is the same as the Display impl.  Suggested by clippy.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
base/zcoord.rs

index 624d06db272c55155bc6a8ffc0546c60910f1eaa..7c7847a2b07097c3cc38fc86c336f0e201afdf4a 100644 (file)
@@ -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 {