// Overwrite so that we don't warn the trait item itself.
Overwrite so that we don't warn the trait item itself.
Overwrite so that we don ' t warn the trait item itself .
fn visit_trait_item(&mut self, trait_item: &hir::TraitItem) {
        match trait_item.node {
            hir::ConstTraitItem(_, Some(ref expr)) => {
                visit::walk_expr(self, expr)
            }
            hir::MethodTraitItem(_, Some(ref body)) => {
                visit::walk_block(self, body)
            }
            hir::ConstTraitItem(_, None) |
            hir::MethodTraitItem(_, None) |
            hir::TypeTraitItem(..) => {}
        }
    }
fn visit_trait_item ( & mut self , trait_item : & hir :: TraitItem ) { match trait_item . node { hir :: ConstTraitItem ( _ , Some ( ref expr ) ) => { visit :: walk_expr ( self , expr ) } hir :: MethodTraitItem ( _ , Some ( ref body ) ) => { visit :: walk_block ( self , body ) } hir :: ConstTraitItem ( _ , None ) | hir :: MethodTraitItem ( _ , None ) | hir :: TypeTraitItem ( .. ) => { } } }
Overwrite so that we don't warn the trait item itself.
Overwrite so that we don ' t warn the trait item itself .
&mut self
trait_item
&hir::TraitItem