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
|
.scopes
|
||||||
.union(&other.scopes)
|
.union(&other.scopes)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|s| *s)
|
.copied()
|
||||||
.collect();
|
.collect();
|
||||||
Scopes {
|
Scopes {
|
||||||
scopes: newset,
|
scopes: newset,
|
||||||
|
|
Loading…
Reference in New Issue