@@ -3903,11 +3903,11 @@ pub struct FnHeader {
39033903
39043904impl FnHeader {
39053905 pub fn is_async ( & self ) -> bool {
3906- matches ! ( & self . asyncness, IsAsync :: Async ( _) )
3906+ matches ! ( self . asyncness, IsAsync :: Async ( _) )
39073907 }
39083908
39093909 pub fn is_const ( & self ) -> bool {
3910- matches ! ( & self . constness, Constness :: Const )
3910+ matches ! ( self . constness, Constness :: Const )
39113911 }
39123912
39133913 pub fn is_unsafe ( & self ) -> bool {
@@ -4003,16 +4003,16 @@ pub struct Impl<'hir> {
40034003
40044004impl ItemKind < ' _ > {
40054005 pub fn generics ( & self ) -> Option < & Generics < ' _ > > {
4006- Some ( match * self {
4007- ItemKind :: Fn { ref generics, .. }
4008- | ItemKind :: TyAlias ( _, ref generics)
4009- | ItemKind :: Const ( _, ref generics, _)
4010- | ItemKind :: Enum ( _, ref generics)
4011- | ItemKind :: Struct ( _, ref generics)
4012- | ItemKind :: Union ( _, ref generics)
4013- | ItemKind :: Trait ( _, _, ref generics, _, _)
4014- | ItemKind :: TraitAlias ( ref generics, _)
4015- | ItemKind :: Impl ( Impl { ref generics, .. } ) => generics,
4006+ Some ( match self {
4007+ ItemKind :: Fn { generics, .. }
4008+ | ItemKind :: TyAlias ( _, generics)
4009+ | ItemKind :: Const ( _, generics, _)
4010+ | ItemKind :: Enum ( _, generics)
4011+ | ItemKind :: Struct ( _, generics)
4012+ | ItemKind :: Union ( _, generics)
4013+ | ItemKind :: Trait ( _, _, generics, _, _)
4014+ | ItemKind :: TraitAlias ( generics, _)
4015+ | ItemKind :: Impl ( Impl { generics, .. } ) => generics,
40164016 _ => return None ,
40174017 } )
40184018 }
0 commit comments