]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/nonstandard_macro_braces.rs
Last PR adjustments
[rust.git] / clippy_lints / src / nonstandard_macro_braces.rs
index 0ca0befc13515e92f16c59e871215ce4c815ff90..6c909e5ed73ea6b5faac116b6ca5bb657a3cc21f 100644 (file)
@@ -266,7 +266,7 @@ fn visit_map<V>(self, mut map: V) -> Result<Self::Value, V::Error>
                         .iter()
                         .find(|b| b.0 == brace)
                         .map(|(o, c)| ((*o).to_owned(), (*c).to_owned()))
-                        .ok_or_else(|| de::Error::custom(&format!("expected one of `(`, `{{`, `[` found `{brace}`")))?,
+                        .ok_or_else(|| de::Error::custom(format!("expected one of `(`, `{{`, `[` found `{brace}`")))?,
                 })
             }
         }