summaryrefslogtreecommitdiffstats
path: root/src/scopes.rs
diff options
context:
space:
mode:
authorPaul Woolcock <paul@woolcock.us>2020-09-25 14:56:01 -0400
committerPaul Woolcock <paul@woolcock.us>2020-09-25 16:44:06 -0400
commit982a8fc776aa787ca703d6e2f9f636926943291b (patch)
tree02fe26404ad0d73f98d18f4fa81ebe5e282a1bfd /src/scopes.rs
parenta69d0ea928590cc2a20505c1bbf59d62b5d550a1 (diff)
making clippy happy
Diffstat (limited to 'src/scopes.rs')
-rw-r--r--src/scopes.rs3
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,