mirror of https://github.com/astral-sh/ruff
perf: Use `copied` instead of cloning a vector
This commit is contained in:
parent
e0f02646fe
commit
13114adc4e
|
|
@ -1256,7 +1256,7 @@ impl<'a> Checker<'a> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for index in self.dead_scopes.clone() {
|
for index in self.dead_scopes.iter().copied() {
|
||||||
let scope = &self.scopes[index];
|
let scope = &self.scopes[index];
|
||||||
|
|
||||||
let all_binding = scope.values.get("__all__");
|
let all_binding = scope.values.get("__all__");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue