Skip to content

Commit 2902359

Browse files
committed
Add the lint to the lib
1 parent 5bb7681 commit 2902359

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

clippy_lints/src/declared_lints.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
408408
crate::methods::UNNECESSARY_FOLD_INFO,
409409
crate::methods::UNNECESSARY_JOIN_INFO,
410410
crate::methods::UNNECESSARY_LAZY_EVALUATIONS_INFO,
411+
crate::methods::UNNECESSARY_LITERAL_UNWRAP_INFO,
411412
crate::methods::UNNECESSARY_SORT_BY_INFO,
412413
crate::methods::UNNECESSARY_TO_OWNED_INFO,
413414
crate::methods::UNWRAP_OR_ELSE_DEFAULT_INFO,

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3400,6 +3400,7 @@ impl_lint_pass!(Methods => [
34003400
SUSPICIOUS_COMMAND_ARG_SPACE,
34013401
CLEAR_WITH_DRAIN,
34023402
MANUAL_NEXT_BACK,
3403+
UNNECESSARY_LITERAL_UNWRAP,
34033404
]);
34043405

34053406
/// Extracts a method call name, args, and `Span` of the method name.

0 commit comments

Comments
 (0)