perf: Use `copied` instead of cloning a vector

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

View File

@ -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__");