diff options
Diffstat (limited to 'src/scopes.rs')
-rw-r--r-- | src/scopes.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/scopes.rs b/src/scopes.rs index 0a7a0a6..f8ff719 100644 --- a/src/scopes.rs +++ b/src/scopes.rs @@ -217,8 +217,7 @@ impl Scopes { let newset: HashSet<_> = self .scopes .union(&other.scopes) - .into_iter() - .map(|s| *s) + .copied() .collect(); Scopes { scopes: newset, |