Browse Source

fix clippy

Jonathan Kelley 2 years ago
parent
commit
bf559a6d06
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/autofmt/src/writer.rs

+ 1 - 1
packages/autofmt/src/writer.rs

@@ -183,7 +183,7 @@ impl Writer {
         write!(
             self.out,
             "for {} in {} {{",
-            forloop.pat.clone().into_token_stream().to_string(),
+            forloop.pat.clone().into_token_stream(),
             prettyplease::unparse_expr(&forloop.expr)
         )?;