File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
clippy_lints/src/functions Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
use rustc_abi:: ExternAbi ;
2
- use rustc_hir:: { self as hir, intravisit} ;
2
+ use rustc_hir as hir;
3
+ use rustc_hir:: intravisit:: FnKind ;
3
4
use rustc_lint:: LateContext ;
4
5
use rustc_span:: Span ;
5
6
@@ -10,7 +11,7 @@ use super::TOO_MANY_ARGUMENTS;
10
11
11
12
pub ( super ) fn check_fn (
12
13
cx : & LateContext < ' _ > ,
13
- kind : intravisit :: FnKind < ' _ > ,
14
+ kind : FnKind < ' _ > ,
14
15
decl : & hir:: FnDecl < ' _ > ,
15
16
span : Span ,
16
17
hir_id : hir:: HirId ,
@@ -20,7 +21,7 @@ pub(super) fn check_fn(
20
21
if !is_trait_impl_item ( cx, hir_id) {
21
22
// don't lint extern functions decls, it's not their fault either
22
23
match kind {
23
- intravisit :: FnKind :: Method (
24
+ FnKind :: Method (
24
25
_,
25
26
& hir:: FnSig {
26
27
header : hir:: FnHeader {
@@ -29,7 +30,7 @@ pub(super) fn check_fn(
29
30
..
30
31
} ,
31
32
)
32
- | intravisit :: FnKind :: ItemFn (
33
+ | FnKind :: ItemFn (
33
34
_,
34
35
_,
35
36
hir:: FnHeader {
You can’t perform that action at this time.
0 commit comments