summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/eco.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/eco.rs b/src/util/eco.rs
index 5a4d7629..8f519504 100644
--- a/src/util/eco.rs
+++ b/src/util/eco.rs
@@ -368,6 +368,14 @@ impl FromIterator<Self> for EcoString {
}
}
+impl Extend<char> for EcoString {
+ fn extend<T: IntoIterator<Item = char>>(&mut self, iter: T) {
+ for c in iter {
+ self.push(c);
+ }
+ }
+}
+
impl From<EcoString> for String {
fn from(s: EcoString) -> Self {
match s.0 {