Fix clippy: Remove manual copying in iterator
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
e933f1efec
commit
edad6082a1
|
@ -184,7 +184,7 @@ impl Scopes {
|
|||
.scopes
|
||||
.union(&other.scopes)
|
||||
.into_iter()
|
||||
.map(|s| *s)
|
||||
.copied()
|
||||
.collect();
|
||||
Scopes {
|
||||
scopes: newset,
|
||||
|
|
Loading…
Reference in New Issue