Update clippy_lints/src/matches/redundant_guards.rs
fix typo Co-authored-by: Alejandra González <blyxyas@gmail.com>
This commit is contained in:
parent
8d3bbb0964
commit
67f0ba4af8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user