mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 17:28:09 +00:00
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
1 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue