diff options
| author | Marek Barvíř <barvirm@gmail.com> | 2023-04-18 11:19:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-18 11:19:09 +0200 |
| commit | 56673bcdf5a8be0f89a3781a5ce392736823dc44 (patch) | |
| tree | 03cbe32d6b1334bc17639b15f91b6d81b6a6e594 /src/syntax/ast.rs | |
| parent | 213502721961854b30a4971b0197495145fbbc75 (diff) | |
Clippy fixes (#856)
Diffstat (limited to 'src/syntax/ast.rs')
| -rw-r--r-- | src/syntax/ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Item = Ident> + '_ { - 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), |
