chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b475eb
)
zcoord: Remove redundant to_string method
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 30 Mar 2022 23:54:35 +0000
(
00:54
+0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/base/zcoord.rs
b/base/zcoord.rs
index 624d06db272c55155bc6a8ffc0546c60910f1eaa..7c7847a2b07097c3cc38fc86c336f0e201afdf4a 100644
(file)
--- 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 {