aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rope.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rope.rs b/src/rope.rs
index cc98422..351ced9 100644
--- a/src/rope.rs
+++ b/src/rope.rs
@@ -102,7 +102,7 @@ impl Rope {
}
fn branch(children: impl Iterator<Item = Rope>) -> Rope {
- let children = Rc::from_iter(children);
+ let children: Rc<[Rope]> = children.collect();
let mut len = 0;
let mut lines = 0;
for c in children.iter() {