Skip to content

Commit 9e0de8c

Browse files
committed
Auto merge of #9799 - bebecue:patch-1, r=dswij
Update lint `suspicious_to_owned` changelog: [`suspicious_to_owned`]: Use explicit type annotation on lint description instead of `matches!`
2 parents 4cb9681 + f86c35c commit 9e0de8c

File tree

1 file changed

+1
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-2
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2096,8 +2096,7 @@ declare_clippy_lint! {
20962096
/// let s = "Hello world!";
20972097
/// let cow = Cow::Borrowed(s);
20982098
///
2099-
/// let data = cow.into_owned();
2100-
/// assert!(matches!(data, String))
2099+
/// let _data: String = cow.into_owned();
21012100
/// ```
21022101
#[clippy::version = "1.65.0"]
21032102
pub SUSPICIOUS_TO_OWNED,

0 commit comments

Comments
 (0)