File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -195,20 +195,12 @@ impl<'a> OverflowableItem<'a> {
195
195
OverflowableItem :: NestedMetaItem ( ..) => SPECIAL_CASE_ATTR ,
196
196
_ => & [ ] ,
197
197
} ;
198
- let additional_cases = if config. version ( ) == Version :: Two {
199
- self . special_cases_v2 ( )
200
- } else {
201
- & [ ]
198
+ let additional_cases = match ( self , config. version ( ) ) {
199
+ ( OverflowableItem :: MacroArg ( ..) , Version :: Two ) => SPECIAL_CASE_MACROS_V2 ,
200
+ _ => & [ ] ,
202
201
} ;
203
202
base_cases. iter ( ) . chain ( additional_cases)
204
203
}
205
-
206
- fn special_cases_v2 ( & self ) -> & ' static [ ( & ' static str , usize ) ] {
207
- match self {
208
- OverflowableItem :: MacroArg ( ..) => SPECIAL_CASE_MACROS_V2 ,
209
- _ => & [ ] ,
210
- }
211
- }
212
204
}
213
205
214
206
pub ( crate ) trait IntoOverflowableItem < ' a > : Rewrite + Spanned {
You can’t perform that action at this time.
0 commit comments