@@ -217,12 +217,8 @@ impl AttrTokenStream {
217217 let mut inner_attrs = Vec :: new ( ) ;
218218 for attr in & data. attrs {
219219 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) ,
226222 }
227223 }
228224
@@ -239,9 +235,9 @@ impl AttrTokenStream {
239235 // Check the last two trees (to account for a trailing semi)
240236 for tree in target_tokens. iter_mut ( ) . rev ( ) . take ( 2 ) {
241237 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:
245241 // e.g. fn foo() { #![my_attr} }
246242 //
247243 // Therefore, we can insert them back into the right location
0 commit comments