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 {
|
||||
kind: BindingKind::Importation(match module {
|
||||
None => name.clone(),
|
||||
Some(parent) => format!("{}.{}", parent, name.clone()),
|
||||
Some(parent) => format!("{}.{}", parent, name),
|
||||
}),
|
||||
used: None,
|
||||
location: stmt.location,
|
||||
|
|
|
|||
Loading…
Reference in New Issue