File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
clippy_lints/src/functions Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,16 @@ pub(super) fn check_fn(
18
18
too_many_arguments_threshold : u64 ,
19
19
) {
20
20
// 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)
22
22
// 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
+ ) ;
31
31
}
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments