From b7422bd1abd03c02b4aa4a6a5d3dcc1136d37a42 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 25 Sep 2019 17:19:16 +0300 Subject: fewer monomorphisations --- crates/ra_syntax/src/algo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_syntax/src/algo.rs') diff --git a/crates/ra_syntax/src/algo.rs b/crates/ra_syntax/src/algo.rs index 45f624810..7ee5aa85b 100644 --- a/crates/ra_syntax/src/algo.rs +++ b/crates/ra_syntax/src/algo.rs @@ -70,7 +70,7 @@ pub enum InsertPosition { pub fn insert_children( parent: &SyntaxNode, position: InsertPosition, - to_insert: impl Iterator, + to_insert: &mut dyn Iterator, ) -> SyntaxNode { let mut delta = TextUnit::default(); let to_insert = to_insert.map(|element| { @@ -108,7 +108,7 @@ pub fn insert_children( pub fn replace_children( parent: &SyntaxNode, to_delete: RangeInclusive, - to_insert: impl Iterator, + to_insert: &mut dyn Iterator, ) -> SyntaxNode { let start = position_of_child(parent, to_delete.start().clone()); let end = position_of_child(parent, to_delete.end().clone()); -- cgit v1.2.3