diff options
| author | Pavan Kumar Sunkara <pavan.sss1991@gmail.com> | 2023-02-16 11:32:12 +0000 |
|---|---|---|
| committer | Pavan Kumar Sunkara <pavan.sss1991@gmail.com> | 2023-06-12 16:19:26 +0100 |
| commit | 2902359b3c922910b5b5bc1c2fa73c3e8bf2fcfb (patch) | |
| tree | c6825f7b59dbe63f030e6193b1e46d761380a0b4 | |
| parent | 5bb768177ee83065191b1f47111ecf63de347cff (diff) | |
| download | rust-2902359b3c922910b5b5bc1c2fa73c3e8bf2fcfb.tar.gz rust-2902359b3c922910b5b5bc1c2fa73c3e8bf2fcfb.zip | |
Add the lint to the lib
| -rw-r--r-- | clippy_lints/src/declared_lints.rs | 1 | ||||
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/clippy_lints/src/declared_lints.rs b/clippy_lints/src/declared_lints.rs index 523faa302dc..62317dc60eb 100644 --- a/clippy_lints/src/declared_lints.rs +++ b/clippy_lints/src/declared_lints.rs @@ -408,6 +408,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[ crate::methods::UNNECESSARY_FOLD_INFO, crate::methods::UNNECESSARY_JOIN_INFO, crate::methods::UNNECESSARY_LAZY_EVALUATIONS_INFO, + crate::methods::UNNECESSARY_LITERAL_UNWRAP_INFO, crate::methods::UNNECESSARY_SORT_BY_INFO, crate::methods::UNNECESSARY_TO_OWNED_INFO, crate::methods::UNWRAP_OR_ELSE_DEFAULT_INFO, diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 9d7b607ec7b..6eb97227e0a 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -3400,6 +3400,7 @@ impl_lint_pass!(Methods => [ SUSPICIOUS_COMMAND_ARG_SPACE, CLEAR_WITH_DRAIN, MANUAL_NEXT_BACK, + UNNECESSARY_LITERAL_UNWRAP, ]); /// Extracts a method call name, args, and `Span` of the method name. |
