summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-21 16:38:51 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-21 17:30:21 +0200
commit0dd4ae0a7ac0c247078df492469ff20b8a90c886 (patch)
tree07a55343b9ccab3fe76b0f1b0de9d1be310d8b14 /src/util
parentf38eb10c2b54bd13ccef119454839f6a66448462 (diff)
Prune derives
Diffstat (limited to 'src/util')
-rw-r--r--src/util/eco.rs36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/util/eco.rs b/src/util/eco.rs
index b44214bd..f1dfdfaf 100644
--- a/src/util/eco.rs
+++ b/src/util/eco.rs
@@ -163,24 +163,6 @@ impl EcoString {
}
}
-impl Default for EcoString {
- fn default() -> Self {
- Self::new()
- }
-}
-
-impl Display for EcoString {
- fn fmt(&self, f: &mut Formatter) -> fmt::Result {
- Display::fmt(self.as_str(), f)
- }
-}
-
-impl Debug for EcoString {
- fn fmt(&self, f: &mut Formatter) -> fmt::Result {
- Debug::fmt(self.as_str(), f)
- }
-}
-
impl Deref for EcoString {
type Target = str;
@@ -201,6 +183,24 @@ impl Deref for EcoString {
}
}
+impl Default for EcoString {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
+impl Debug for EcoString {
+ fn fmt(&self, f: &mut Formatter) -> fmt::Result {
+ Debug::fmt(self.as_str(), f)
+ }
+}
+
+impl Display for EcoString {
+ fn fmt(&self, f: &mut Formatter) -> fmt::Result {
+ Display::fmt(self.as_str(), f)
+ }
+}
+
impl Eq for EcoString {}
impl PartialEq for EcoString {