use Vec::extend instead of Vec::push in loop
Co-Authored-By: Laurențiu Nicola <lnicola@users.noreply.github.com>
This commit is contained in:
parent
8b3f449b5f
commit
7be1044104
@ -110,9 +110,7 @@ fn rename_mod(
|
||||
)
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user