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:
bors 2021-03-06 13:32:04 +00:00
commit 13271d3344

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,