From: Ian Jackson Date: Wed, 30 Mar 2022 23:54:35 +0000 (+0100) Subject: zcoord: Remove redundant to_string method X-Git-Tag: otter-1.0.0~60 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5f728cd9e58672ab0f182d5cdac0f53b9f9d7d96;p=otter.git zcoord: Remove redundant to_string method This is the same as the Display impl. Suggested by clippy. Signed-off-by: Ian Jackson --- 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 {