@@ -105,10 +105,10 @@ impl<Toggleability> Stability<Toggleability> {
105
105
/// - for `#[target_feature]`/`-Ctarget-feature`, check `allow_toggle()`
106
106
/// - for `cfg(target_feature)`, check `in_cfg`
107
107
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" ) ,
112
112
}
113
113
}
114
114
}
@@ -120,21 +120,21 @@ impl StabilityUncomputed {
120
120
enable : f ( target, true ) ,
121
121
disable : f ( target, false ) ,
122
122
} ;
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 } => {
126
126
Unstable { nightly_feature, allow_toggle : compute ( allow_toggle) }
127
127
}
128
- & Forbidden { reason } => Forbidden { reason } ,
128
+ Forbidden { reason } => Forbidden { reason } ,
129
129
}
130
130
}
131
131
132
132
pub fn toggle_allowed ( & self , target : & Target , enable : bool ) -> Result < ( ) , & ' static str > {
133
133
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) ,
138
138
}
139
139
}
140
140
}
0 commit comments