useless_format: fix examples in the description
"Good" example was something not acceptable by the useless_format lint.
This commit is contained in:
parent
54def1e145
commit
a0b7f9b3a0
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user