From edad6082a1a5803c2b3aa0eca708be4d1a23b560 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 27 Dec 2022 15:46:40 +0100 Subject: [PATCH] Fix clippy: Remove manual copying in iterator Signed-off-by: Matthias Beyer --- src/scopes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scopes.rs b/src/scopes.rs index 8af8865..1f18664 100644 --- a/src/scopes.rs +++ b/src/scopes.rs @@ -184,7 +184,7 @@ impl Scopes { .scopes .union(&other.scopes) .into_iter() - .map(|s| *s) + .copied() .collect(); Scopes { scopes: newset,