diff --git a/crates/ra_ide/src/references/rename.rs b/crates/ra_ide/src/references/rename.rs index 97a97c0ae1..bcb62b33d5 100644 --- a/crates/ra_ide/src/references/rename.rs +++ b/crates/ra_ide/src/references/rename.rs @@ -110,9 +110,7 @@ fn rename_mod( ) }) .collect::>(); - for ref_edit in ref_edits { - source_file_edits.push(ref_edit); - } + source_file_edits.extend(ref_edits); } Some(SourceChange::from_edits("rename", source_file_edits, file_system_edits))