summaryrefslogtreecommitdiff
path: root/src/util/eco.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/eco.rs')
-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 {