Skip to content

Commit c0f379e

Browse files
committed
nest ifs
1 parent 8f6ef40 commit c0f379e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

clippy_lints/src/functions/too_many_arguments.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ pub(super) fn check_fn(
1818
too_many_arguments_threshold: u64,
1919
) {
2020
// don't warn for implementations, it's not their fault
21-
if !is_trait_impl_item(cx, hir_id) {
21+
if !is_trait_impl_item(cx, hir_id)
2222
// don't lint extern functions decls, it's not their fault either
23-
if kind.header().is_some_and(|header| header.abi == ExternAbi::Rust) {
24-
check_arg_number(
25-
cx,
26-
decl,
27-
span.with_hi(decl.output.span().hi()),
28-
too_many_arguments_threshold,
29-
);
30-
}
23+
&& kind.header().is_some_and(|header| header.abi == ExternAbi::Rust)
24+
{
25+
check_arg_number(
26+
cx,
27+
decl,
28+
span.with_hi(decl.output.span().hi()),
29+
too_many_arguments_threshold,
30+
);
3131
}
3232
}
3333

0 commit comments

Comments
 (0)