diff options
| author | bors <bors@rust-lang.org> | 2023-11-24 14:58:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-24 14:58:07 +0000 |
| commit | 3e7a63b8d1b56d4e8a440df81eea649c9d6926d7 (patch) | |
| tree | 024df9178ae90afa3ba2e091843155f50a3065f3 | |
| parent | e075823e2c3fe08f096a34f58b7cd41e88e6b7f9 (diff) | |
| parent | 4937fba456dd0e8fe4f1e5de35da3b2779eea031 (diff) | |
| download | rust-3e7a63b8d1b56d4e8a440df81eea649c9d6926d7.tar.gz rust-3e7a63b8d1b56d4e8a440df81eea649c9d6926d7.zip | |
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
| -rw-r--r-- | clippy_lints/src/eta_reduction.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy_lints/src/eta_reduction.rs b/clippy_lints/src/eta_reduction.rs index e0df87e08da..241b51eeca0 100644 --- a/clippy_lints/src/eta_reduction.rs +++ b/clippy_lints/src/eta_reduction.rs @@ -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). |
