Skip to content

Commit 256429a

Browse files
committed
match on header.abi directly
1 parent 4570f51 commit 256429a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clippy_lints/src/functions/too_many_arguments.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ pub(super) fn check_fn(
2222
// don't lint extern functions decls, it's not their fault either
2323
match kind {
2424
FnKind::Method(_, &hir::FnSig { header, .. }) | FnKind::ItemFn(_, _, header)
25-
if let hir::FnHeader {
26-
abi: ExternAbi::Rust, ..
27-
} = header =>
25+
if header.abi == ExternAbi::Rust =>
2826
{
2927
check_arg_number(
3028
cx,

0 commit comments

Comments
 (0)