Skip to content

Commit 13271d3

Browse files
committed
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
2 parents 0153679 + a0b7f9b commit 13271d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/format.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ declare_clippy_lint! {
2828
/// ```rust
2929
///
3030
/// // Bad
31-
/// # let foo = "foo";
31+
/// let foo = "foo";
3232
/// format!("{}", foo);
3333
///
3434
/// // Good
35-
/// format!("foo");
35+
/// foo.to_owned();
3636
/// ```
3737
pub USELESS_FORMAT,
3838
complexity,

0 commit comments

Comments
 (0)