File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ fn rewrite_macro_inner(
226
226
}
227
227
// Format well-known macros which cannot be parsed as a valid AST.
228
228
if macro_name == "lazy_static!" && !has_comment {
229
- if let success @ Some ( ..) = format_lazy_static ( context, shape, ts. trees ( ) . collect ( ) ) {
229
+ if let success @ Some ( ..) = format_lazy_static ( context, shape, ts. clone ( ) ) {
230
230
return success;
231
231
}
232
232
}
@@ -855,7 +855,7 @@ impl MacroArgParser {
855
855
856
856
/// Returns a collection of parsed macro def's arguments.
857
857
fn parse ( mut self , tokens : TokenStream ) -> Option < Vec < ParsedMacroArg > > {
858
- let mut iter = tokens. trees ( ) ;
858
+ let mut iter = tokens. into_trees ( ) ;
859
859
860
860
while let Some ( tok) = iter. next ( ) {
861
861
match tok {
You can’t perform that action at this time.
0 commit comments