We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
suspicious_to_owned
1 parent 704e00c commit f86c35cCopy full SHA for f86c35c
1 file changed
clippy_lints/src/methods/mod.rs
@@ -2096,8 +2096,7 @@ declare_clippy_lint! {
2096
/// let s = "Hello world!";
2097
/// let cow = Cow::Borrowed(s);
2098
///
2099
- /// let data = cow.into_owned();
2100
- /// assert!(matches!(data, String))
+ /// let _data: String = cow.into_owned();
2101
/// ```
2102
#[clippy::version = "1.65.0"]
2103
pub SUSPICIOUS_TO_OWNED,
0 commit comments