diff options
| author | Kartavya Vashishtha <sendtokartavya@gmail.com> | 2023-02-05 01:50:44 +0530 |
|---|---|---|
| committer | Kartavya Vashishtha <sendtokartavya@gmail.com> | 2023-02-05 01:50:44 +0530 |
| commit | 63a57ee1c381ec8ee0dec13213619113f030d773 (patch) | |
| tree | af67857acb02bba9303b4b71af4583a2c3f01324 /clippy_lints/src/methods | |
| parent | 46edafe8c1df5fd4aef6492cee0a96e72bb428ba (diff) | |
| download | rust-63a57ee1c381ec8ee0dec13213619113f030d773.tar.gz rust-63a57ee1c381ec8ee0dec13213619113f030d773.zip | |
retain applicability
Diffstat (limited to 'clippy_lints/src/methods')
| -rw-r--r-- | clippy_lints/src/methods/suspicious_to_owned.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/suspicious_to_owned.rs b/clippy_lints/src/methods/suspicious_to_owned.rs index 1adc7b7453e..62eeb3f7a4e 100644 --- a/clippy_lints/src/methods/suspicious_to_owned.rs +++ b/clippy_lints/src/methods/suspicious_to_owned.rs @@ -33,7 +33,7 @@ pub fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &hir::Expr<'_>) - expr.span, "depending on intent, either make the Cow an Owned variant or clone the Cow itself", [format!("{recv_snip}.into_owned()"), format!("{recv_snip}.clone()")], - Applicability::Unspecified + app ); } ); |
