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 {
@@ -419,7 +415,7 @@ pub fn rewrite_macro_def(
419
415
} ,
420
416
context. codemap . span_after ( span, "{" ) ,
421
417
span. hi ( ) ,
422
- false
418
+ false ,
423
419
) . collect :: < Vec < _ > > ( ) ;
424
420
425
421
let arm_shape = shape
@@ -804,7 +800,10 @@ impl MacroParser {
804
800
TokenTree :: Token ( ..) => return None ,
805
801
TokenTree :: Delimited ( sp, _) => {
806
802
let data = sp. data ( ) ;
807
- ( data. hi , Span :: new ( data. lo + BytePos ( 1 ) , data. hi - BytePos ( 1 ) , data. ctxt ) )
803
+ (
804
+ data. hi ,
805
+ Span :: new ( data. lo + BytePos ( 1 ) , data. hi - BytePos ( 1 ) , data. ctxt ) ,
806
+ )
808
807
}
809
808
} ;
810
809
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