Skip to content

Commit 3e7a63b

Browse files
committed
Auto merge of rust-lang#11863 - smoelius:patch-1, r=dswij
Nit re `matches!` formatting I think formatting `matches!` with `if` guards is [still unsupported](rust-lang/rustfmt#5547), which is probably why this was missed. changelog: none
2 parents e075823 + 4937fba commit 3e7a63b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/eta_reduction.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ fn check_inputs(
220220
params.len() == self_arg.map_or(0, |_| 1) + args.len()
221221
&& params.iter().zip(self_arg.into_iter().chain(args)).all(|(p, arg)| {
222222
matches!(
223-
p.pat.kind,PatKind::Binding(BindingAnnotation::NONE, id, _, None)
223+
p.pat.kind,
224+
PatKind::Binding(BindingAnnotation::NONE, id, _, None)
224225
if path_to_local_id(arg, id)
225226
)
226227
// Only allow adjustments which change regions (i.e. re-borrowing).

0 commit comments

Comments
 (0)