Skip to content

Commit

Permalink
Auto merge of rust-lang#6854 - mgacek8:6844_fix_doc_for_useless_forma…
Browse files Browse the repository at this point in the history
…t_lint, r=phansch

useless_format: fix examples in the description

fixes rust-lang#6844
changelog: useless_format: fix examples in the description
  • Loading branch information
bors committed Mar 6, 2021
2 parents 0153679 + a0b7f9b commit 13271d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 13271d3

Please sign in to comment.