]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/format.rs
Rollup merge of #83092 - petrochenkov:qspan, r=estebank
[rust.git] / clippy_lints / src / format.rs
index 8e41e0e34daf75bc6f87242e19dc38756a30248a..fd6bf19db94c84c38dadef790aa69ca597cf0b48 100644 (file)
     /// ```rust
     ///
     /// // Bad
-    /// let foo = "foo";
+    /// let foo = "foo";
     /// format!("{}", foo);
     ///
     /// // Good
-    /// format!("foo");
+    /// foo.to_owned();
     /// ```
     pub USELESS_FORMAT,
     complexity,