perf: Do not clone `name` before passing to `format!`

This commit is contained in:
Dmitry Dygalo 2022-09-13 11:07:33 +02:00
parent 13114adc4e
commit db80def506
No known key found for this signature in database
GPG Key ID: 0D78E60518FE18BB
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ where
let binding = Binding {
kind: BindingKind::Importation(match module {
None => name.clone(),
Some(parent) => format!("{}.{}", parent, name.clone()),
Some(parent) => format!("{}.{}", parent, name),
}),
used: None,
location: stmt.location,