@@ -105,10 +105,10 @@ impl<Toggleability> Stability<Toggleability> {
105105 /// - for `#[target_feature]`/`-Ctarget-feature`, check `allow_toggle()`
106106 /// - for `cfg(target_feature)`, check `in_cfg`
107107 pub fn requires_nightly ( & self ) -> Option < Symbol > {
108- match self {
109- & Stability :: Unstable { nightly_feature, .. } => Some ( nightly_feature) ,
110- & Stability :: Stable { .. } => None ,
111- & Stability :: Forbidden { .. } => panic ! ( "forbidden features should not reach this far" ) ,
108+ match * self {
109+ Stability :: Unstable { nightly_feature, .. } => Some ( nightly_feature) ,
110+ Stability :: Stable { .. } => None ,
111+ Stability :: Forbidden { .. } => panic ! ( "forbidden features should not reach this far" ) ,
112112 }
113113 }
114114}
@@ -120,21 +120,21 @@ impl StabilityUncomputed {
120120 enable : f ( target, true ) ,
121121 disable : f ( target, false ) ,
122122 } ;
123- match self {
124- & Stable { allow_toggle } => Stable { allow_toggle : compute ( allow_toggle) } ,
125- & Unstable { nightly_feature, allow_toggle } => {
123+ match * self {
124+ Stable { allow_toggle } => Stable { allow_toggle : compute ( allow_toggle) } ,
125+ Unstable { nightly_feature, allow_toggle } => {
126126 Unstable { nightly_feature, allow_toggle : compute ( allow_toggle) }
127127 }
128- & Forbidden { reason } => Forbidden { reason } ,
128+ Forbidden { reason } => Forbidden { reason } ,
129129 }
130130 }
131131
132132 pub fn toggle_allowed ( & self , target : & Target , enable : bool ) -> Result < ( ) , & ' static str > {
133133 use Stability :: * ;
134- match self {
135- & Stable { allow_toggle } => allow_toggle ( target, enable) ,
136- & Unstable { allow_toggle, .. } => allow_toggle ( target, enable) ,
137- & Forbidden { reason } => Err ( reason) ,
134+ match * self {
135+ Stable { allow_toggle } => allow_toggle ( target, enable) ,
136+ Unstable { allow_toggle, .. } => allow_toggle ( target, enable) ,
137+ Forbidden { reason } => Err ( reason) ,
138138 }
139139 }
140140}
0 commit comments