File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -323,12 +323,8 @@ pub fn rewrite_macro_def(
323
323
parsed_def. branches . iter ( ) ,
324
324
"}" ,
325
325
";" ,
326
- |branch| {
327
- branch. span . lo ( )
328
- } ,
329
- |branch| {
330
- branch. span . hi ( )
331
- } ,
326
+ |branch| branch. span . lo ( ) ,
327
+ |branch| branch. span . hi ( ) ,
332
328
|branch| {
333
329
// Only attempt to format function-like macros.
334
330
if branch. args_paren_kind != DelimToken :: Paren {
@@ -416,7 +412,7 @@ pub fn rewrite_macro_def(
416
412
} ,
417
413
context. codemap . span_after ( span, "{" ) ,
418
414
span. hi ( ) ,
419
- false
415
+ false ,
420
416
) . collect :: < Vec < _ > > ( ) ;
421
417
422
418
let arm_shape = shape
@@ -798,7 +794,10 @@ impl MacroParser {
798
794
TokenTree :: Token ( ..) => return None ,
799
795
TokenTree :: Delimited ( sp, _) => {
800
796
let data = sp. data ( ) ;
801
- ( data. hi , Span :: new ( data. lo + BytePos ( 1 ) , data. hi - BytePos ( 1 ) , data. ctxt ) )
797
+ (
798
+ data. hi ,
799
+ Span :: new ( data. lo + BytePos ( 1 ) , data. hi - BytePos ( 1 ) , data. ctxt ) ,
800
+ )
802
801
}
803
802
} ;
804
803
if let Some ( TokenTree :: Token ( sp, Token :: Semi ) ) = self . toks . look_ahead ( 0 ) {
You can’t perform that action at this time.
0 commit comments