diff options
| author | Chen Chen <0109chenchen@gmail.com> | 2023-09-16 22:12:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-16 22:12:40 +0800 |
| commit | 67f0ba4af8be42d361adc8d047121fe6c820c0d4 (patch) | |
| tree | 319259b98c37dc8498e1c2d9cff83c8933640d51 | |
| parent | 8d3bbb09640479b43b48a3c3a81580a1d3fbbc04 (diff) | |
| download | rust-67f0ba4af8be42d361adc8d047121fe6c820c0d4.tar.gz rust-67f0ba4af8be42d361adc8d047121fe6c820c0d4.zip | |
Update clippy_lints/src/matches/redundant_guards.rs
fix typo Co-authored-by: Alejandra González <blyxyas@gmail.com>
| -rw-r--r-- | clippy_lints/src/matches/redundant_guards.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/matches/redundant_guards.rs b/clippy_lints/src/matches/redundant_guards.rs index d51d7edc8e3..d470c05f351 100644 --- a/clippy_lints/src/matches/redundant_guards.rs +++ b/clippy_lints/src/matches/redundant_guards.rs @@ -123,7 +123,7 @@ fn get_pat_binding<'tcx>( if matches!(bind_annot.0, rustc_ast::ByRef::Yes) { let _ = byref_ident.insert(ident); } - // the second call of `replce()` returns a `Some(span)`, meaning a multi-binding pattern + // the second call of `replace()` returns a `Some(span)`, meaning a multi-binding pattern if span.replace(pat.span).is_some() { multiple_bindings = true; return false; |
