@@ -217,12 +217,8 @@ impl AttrTokenStream {
217
217
let mut inner_attrs = Vec :: new ( ) ;
218
218
for attr in & data. attrs {
219
219
match attr. style {
220
- crate :: AttrStyle :: Outer => {
221
- outer_attrs. push ( attr) ;
222
- }
223
- crate :: AttrStyle :: Inner => {
224
- inner_attrs. push ( attr) ;
225
- }
220
+ crate :: AttrStyle :: Outer => outer_attrs. push ( attr) ,
221
+ crate :: AttrStyle :: Inner => inner_attrs. push ( attr) ,
226
222
}
227
223
}
228
224
@@ -239,9 +235,9 @@ impl AttrTokenStream {
239
235
// Check the last two trees (to account for a trailing semi)
240
236
for tree in target_tokens. iter_mut ( ) . rev ( ) . take ( 2 ) {
241
237
if let TokenTree :: Delimited ( span, delim, delim_tokens) = tree {
242
- // Inner attributes are only supported on extern blocks, functions, impls,
243
- // and modules. All of these have their inner attributes placed at
244
- // the beginning of the rightmost outermost braced group:
238
+ // Inner attributes are only supported on extern blocks, functions,
239
+ // impls, and modules. All of these have their inner attributes
240
+ // placed at the beginning of the rightmost outermost braced group:
245
241
// e.g. fn foo() { #![my_attr} }
246
242
//
247
243
// Therefore, we can insert them back into the right location
0 commit comments