Fix clippy: Remove manual copying in iterator

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2022-12-27 15:46:40 +01:00
parent e933f1efec
commit edad6082a1
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ impl Scopes {
.scopes .scopes
.union(&other.scopes) .union(&other.scopes)
.into_iter() .into_iter()
.map(|s| *s) .copied()
.collect(); .collect();
Scopes { Scopes {
scopes: newset, scopes: newset,