mirror of https://github.com/astral-sh/ruff
perf: Do not clone `name` before passing to `format!`
This commit is contained in:
parent
13114adc4e
commit
db80def506
|
|
@ -472,7 +472,7 @@ where
|
||||||
let binding = Binding {
|
let binding = Binding {
|
||||||
kind: BindingKind::Importation(match module {
|
kind: BindingKind::Importation(match module {
|
||||||
None => name.clone(),
|
None => name.clone(),
|
||||||
Some(parent) => format!("{}.{}", parent, name.clone()),
|
Some(parent) => format!("{}.{}", parent, name),
|
||||||
}),
|
}),
|
||||||
used: None,
|
used: None,
|
||||||
location: stmt.location,
|
location: stmt.location,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue