@@ -3903,11 +3903,11 @@ pub struct FnHeader {
3903
3903
3904
3904
impl FnHeader {
3905
3905
pub fn is_async ( & self ) -> bool {
3906
- matches ! ( & self . asyncness, IsAsync :: Async ( _) )
3906
+ matches ! ( self . asyncness, IsAsync :: Async ( _) )
3907
3907
}
3908
3908
3909
3909
pub fn is_const ( & self ) -> bool {
3910
- matches ! ( & self . constness, Constness :: Const )
3910
+ matches ! ( self . constness, Constness :: Const )
3911
3911
}
3912
3912
3913
3913
pub fn is_unsafe ( & self ) -> bool {
@@ -4003,16 +4003,16 @@ pub struct Impl<'hir> {
4003
4003
4004
4004
impl ItemKind < ' _ > {
4005
4005
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,
4016
4016
_ => return None ,
4017
4017
} )
4018
4018
}
0 commit comments