@@ -204,7 +204,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Types {
204
204
fn check_trait_item ( & mut self , cx : & LateContext < ' _ , ' _ > , item : & TraitItem < ' _ > ) {
205
205
match item. kind {
206
206
TraitItemKind :: Const ( ref ty, _) | TraitItemKind :: Type ( _, Some ( ref ty) ) => self . check_ty ( cx, ty, false ) ,
207
- TraitItemKind :: Method ( ref sig, _) => self . check_fn_decl ( cx, & sig. decl ) ,
207
+ TraitItemKind :: Fn ( ref sig, _) => self . check_fn_decl ( cx, & sig. decl ) ,
208
208
_ => ( ) ,
209
209
}
210
210
}
@@ -1457,7 +1457,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TypeComplexity {
1457
1457
fn check_trait_item ( & mut self , cx : & LateContext < ' a , ' tcx > , item : & ' tcx TraitItem < ' _ > ) {
1458
1458
match item. kind {
1459
1459
TraitItemKind :: Const ( ref ty, _) | TraitItemKind :: Type ( _, Some ( ref ty) ) => self . check_type ( cx, ty) ,
1460
- TraitItemKind :: Method ( FnSig { ref decl, .. } , TraitMethod :: Required ( _) ) => self . check_fndecl ( cx, decl) ,
1460
+ TraitItemKind :: Fn ( FnSig { ref decl, .. } , TraitMethod :: Required ( _) ) => self . check_fndecl ( cx, decl) ,
1461
1461
// methods with default impl are covered by check_fn
1462
1462
_ => ( ) ,
1463
1463
}
0 commit comments