useless_format: fix examples in the description

"Good" example was something not acceptable by the useless_format lint.
This commit is contained in:
Mateusz Gacek 2021-03-05 12:11:31 -08:00
parent 54def1e145
commit a0b7f9b3a0

View file

@ -28,11 +28,11 @@ declare_clippy_lint! {
/// ```rust
///
/// // Bad
/// # let foo = "foo";
/// let foo = "foo";
/// format!("{}", foo);
///
/// // Good
/// format!("foo");
/// foo.to_owned();
/// ```
pub USELESS_FORMAT,
complexity,