mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-11 07:34:18 +00:00
Auto merge of #11863 - smoelius:patch-1, r=dswij
Nit re `matches!` formatting I think formatting `matches!` with `if` guards is [still unsupported](https://github.com/rust-lang/rustfmt/issues/5547), which is probably why this was missed. changelog: none
This commit is contained in:
commit
3e7a63b8d1
1 changed files with 2 additions and 1 deletions
|
@ -220,7 +220,8 @@ fn check_inputs(
|
|||
params.len() == self_arg.map_or(0, |_| 1) + args.len()
|
||||
&& params.iter().zip(self_arg.into_iter().chain(args)).all(|(p, arg)| {
|
||||
matches!(
|
||||
p.pat.kind,PatKind::Binding(BindingAnnotation::NONE, id, _, None)
|
||||
p.pat.kind,
|
||||
PatKind::Binding(BindingAnnotation::NONE, id, _, None)
|
||||
if path_to_local_id(arg, id)
|
||||
)
|
||||
// Only allow adjustments which change regions (i.e. re-borrowing).
|
||||
|
|
Loading…
Reference in a new issue