@@ -633,8 +633,8 @@ fn decl_macro_expander(
633
633
map. as_ref ( ) ,
634
634
map. span_for_range ( macro_rules. macro_rules_token ( ) . unwrap ( ) . text_range ( ) ) ,
635
635
) ;
636
- let mac = mbe :: DeclarativeMacro :: parse_macro_rules ( & tt , is_2021 , new_meta_vars ) ;
637
- mac
636
+
637
+ mbe :: DeclarativeMacro :: parse_macro_rules ( & tt , is_2021 , new_meta_vars )
638
638
}
639
639
None => mbe:: DeclarativeMacro :: from_err (
640
640
mbe:: ParseError :: Expected ( "expected a token tree" . into ( ) ) ,
@@ -651,8 +651,8 @@ fn decl_macro_expander(
651
651
map. as_ref ( ) ,
652
652
map. span_for_range ( macro_def. macro_token ( ) . unwrap ( ) . text_range ( ) ) ,
653
653
) ;
654
- let mac = mbe :: DeclarativeMacro :: parse_macro2 ( & tt , is_2021 , new_meta_vars ) ;
655
- mac
654
+
655
+ mbe :: DeclarativeMacro :: parse_macro2 ( & tt , is_2021 , new_meta_vars )
656
656
}
657
657
None => mbe:: DeclarativeMacro :: from_err (
658
658
mbe:: ParseError :: Expected ( "expected a token tree" . into ( ) ) ,
@@ -722,7 +722,7 @@ fn macro_expand(
722
722
db. decl_macro_expander ( loc. def . krate , id) . expand ( db, arg. clone ( ) , macro_call_id)
723
723
}
724
724
MacroDefKind :: BuiltIn ( it, _) => {
725
- it. expand ( db, macro_call_id, & arg) . map_err ( Into :: into)
725
+ it. expand ( db, macro_call_id, arg) . map_err ( Into :: into)
726
726
}
727
727
// This might look a bit odd, but we do not expand the inputs to eager macros here.
728
728
// Eager macros inputs are expanded, well, eagerly when we collect the macro calls.
@@ -746,10 +746,10 @@ fn macro_expand(
746
746
} ;
747
747
}
748
748
MacroDefKind :: BuiltInEager ( it, _) => {
749
- it. expand ( db, macro_call_id, & arg) . map_err ( Into :: into)
749
+ it. expand ( db, macro_call_id, arg) . map_err ( Into :: into)
750
750
}
751
751
MacroDefKind :: BuiltInAttr ( it, _) => {
752
- let mut res = it. expand ( db, macro_call_id, & arg) ;
752
+ let mut res = it. expand ( db, macro_call_id, arg) ;
753
753
fixup:: reverse_fixups ( & mut res. value , & undo_info) ;
754
754
res
755
755
}
0 commit comments