Update clippy_lints/src/matches/redundant_guards.rs

fix typo

Co-authored-by: Alejandra González <blyxyas@gmail.com>
This commit is contained in:
Chen Chen 2023-09-16 22:12:40 +08:00 committed by GitHub
parent 8d3bbb0964
commit 67f0ba4af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ fn get_pat_binding<'tcx>(
if matches!(bind_annot.0, rustc_ast::ByRef::Yes) { if matches!(bind_annot.0, rustc_ast::ByRef::Yes) {
let _ = byref_ident.insert(ident); 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() { if span.replace(pat.span).is_some() {
multiple_bindings = true; multiple_bindings = true;
return false; return false;