]>
git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/format.rs
/// ```rust
///
/// // Bad
- /// # let foo = "foo";
+ /// let foo = "foo";
/// format!("{}", foo);
///
/// // Good
- /// format!("foo");
+ /// foo.to_owned();
/// ```
pub USELESS_FORMAT,
complexity,