diff options
| author | Samuel Moelius <35515885+smoelius@users.noreply.github.com> | 2023-11-24 07:10:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-24 07:10:28 -0500 |
| commit | 4937fba456dd0e8fe4f1e5de35da3b2779eea031 (patch) | |
| tree | f6ff3f7579c3dba32d87fbec18204be6a72c3f78 /clippy_lints | |
| parent | c3243f99426683ba14deb27279af2553e8a18714 (diff) | |
Nit re `matches!` formatting
Diffstat (limited to 'clippy_lints')
| -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). |
