Skip to content

Commit 1019110

Browse files
committed
import FnKind completely
1 parent 874f1c8 commit 1019110

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

clippy_lints/src/functions/too_many_arguments.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use rustc_abi::ExternAbi;
2-
use rustc_hir::{self as hir, intravisit};
2+
use rustc_hir as hir;
3+
use rustc_hir::intravisit::FnKind;
34
use rustc_lint::LateContext;
45
use rustc_span::Span;
56

@@ -10,7 +11,7 @@ use super::TOO_MANY_ARGUMENTS;
1011

1112
pub(super) fn check_fn(
1213
cx: &LateContext<'_>,
13-
kind: intravisit::FnKind<'_>,
14+
kind: FnKind<'_>,
1415
decl: &hir::FnDecl<'_>,
1516
span: Span,
1617
hir_id: hir::HirId,
@@ -20,7 +21,7 @@ pub(super) fn check_fn(
2021
if !is_trait_impl_item(cx, hir_id) {
2122
// don't lint extern functions decls, it's not their fault either
2223
match kind {
23-
intravisit::FnKind::Method(
24+
FnKind::Method(
2425
_,
2526
&hir::FnSig {
2627
header: hir::FnHeader {
@@ -29,7 +30,7 @@ pub(super) fn check_fn(
2930
..
3031
},
3132
)
32-
| intravisit::FnKind::ItemFn(
33+
| FnKind::ItemFn(
3334
_,
3435
_,
3536
hir::FnHeader {

0 commit comments

Comments
 (0)