mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-16 05:58:41 +00:00
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!`
This commit is contained in:
commit
9e0de8cedc
1 changed files with 1 additions and 2 deletions
|
@ -2096,8 +2096,7 @@ declare_clippy_lint! {
|
|||
/// let s = "Hello world!";
|
||||
/// let cow = Cow::Borrowed(s);
|
||||
///
|
||||
/// let data = cow.into_owned();
|
||||
/// assert!(matches!(data, String))
|
||||
/// let _data: String = cow.into_owned();
|
||||
/// ```
|
||||
#[clippy::version = "1.65.0"]
|
||||
pub SUSPICIOUS_TO_OWNED,
|
||||
|
|
Loading…
Add table
Reference in a new issue