Skip to content

Commit 05f459e

Browse files
committed
fix rustfmt
1 parent cc5f3e2 commit 05f459e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/rustfmt/src/macros.rs

+2-2
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)