From 56673bcdf5a8be0f89a3781a5ce392736823dc44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Barv=C3=AD=C5=99?= Date: Tue, 18 Apr 2023 11:19:09 +0200 Subject: Clippy fixes (#856) --- src/syntax/ast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/syntax') diff --git a/src/syntax/ast.rs b/src/syntax/ast.rs index 3c01bdff..caf5319f 100644 --- a/src/syntax/ast.rs +++ b/src/syntax/ast.rs @@ -1625,7 +1625,7 @@ impl Destructuring { // Returns a list of all identifiers in the pattern. pub fn idents(&self) -> impl Iterator + '_ { - self.bindings().into_iter().filter_map(|binding| match binding { + self.bindings().filter_map(|binding| match binding { DestructuringKind::Ident(ident) => Some(ident), DestructuringKind::Sink(ident) => ident, DestructuringKind::Named(_, ident) => Some(ident), -- cgit v1.2.3