diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2024-01-13 21:33:16 -0800 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2024-01-13 21:33:16 -0800 |
| commit | 9618afee3978354337277c8fffeba20431b1c4f3 (patch) | |
| tree | dcc5c67342039c4d945ec585da84391691fa6cce /src/rope.rs | |
| parent | b275950c2e8dbffcf8b2a8915b0bbfab24dae4ff (diff) | |
| download | editor-9618afee3978354337277c8fffeba20431b1c4f3.tar.zst | |
Use .collect() instead of from_iter()
Diffstat (limited to 'src/rope.rs')
| -rw-r--r-- | src/rope.rs | 2 |
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() { |
