mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Auto merge of #6854 - mgacek8:6844_fix_doc_for_useless_format_lint, r=phansch
useless_format: fix examples in the description fixes #6844 changelog: useless_format: fix examples in the description
This commit is contained in:
commit
13271d3344
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue