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(
226226 }
227227 // Format well-known macros which cannot be parsed as a valid AST.
228228 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 ( ) ) {
230230 return success;
231231 }
232232 }
@@ -855,7 +855,7 @@ impl MacroArgParser {
855855
856856 /// Returns a collection of parsed macro def's arguments.
857857 fn parse ( mut self , tokens : TokenStream ) -> Option < Vec < ParsedMacroArg > > {
858- let mut iter = tokens. trees ( ) ;
858+ let mut iter = tokens. into_trees ( ) ;
859859
860860 while let Some ( tok) = iter. next ( ) {
861861 match tok {
You can’t perform that action at this time.
0 commit comments