File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2687,7 +2687,7 @@ pub enum Node<'hir> {
2687
2687
Crate ( & ' hir CrateItem < ' hir > ) ,
2688
2688
}
2689
2689
2690
- impl Node < ' _ > {
2690
+ impl < ' hir > Node < ' hir > {
2691
2691
pub fn ident ( & self ) -> Option < Ident > {
2692
2692
match self {
2693
2693
Node :: TraitItem ( TraitItem { ident, .. } )
@@ -2698,7 +2698,7 @@ impl Node<'_> {
2698
2698
}
2699
2699
}
2700
2700
2701
- pub fn fn_decl ( & self ) -> Option < & FnDecl < ' _ > > {
2701
+ pub fn fn_decl ( & self ) -> Option < & FnDecl < ' hir > > {
2702
2702
match self {
2703
2703
Node :: TraitItem ( TraitItem { kind : TraitItemKind :: Fn ( fn_sig, _) , .. } )
2704
2704
| Node :: ImplItem ( ImplItem { kind : ImplItemKind :: Fn ( fn_sig, _) , .. } )
@@ -2722,7 +2722,7 @@ impl Node<'_> {
2722
2722
}
2723
2723
}
2724
2724
2725
- pub fn generics ( & self ) -> Option < & Generics < ' _ > > {
2725
+ pub fn generics ( & self ) -> Option < & ' hir Generics < ' hir > > {
2726
2726
match self {
2727
2727
Node :: TraitItem ( TraitItem { generics, .. } )
2728
2728
| Node :: ImplItem ( ImplItem { generics, .. } ) => Some ( generics) ,
You can’t perform that action at this time.
0 commit comments