Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 54c6054

Browse files
committed
Change unnecessary_wraps to pedantic
1 parent e2753f9 commit 54c6054

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13931393
LintId::of(&types::PTR_AS_PTR),
13941394
LintId::of(&unicode::NON_ASCII_LITERAL),
13951395
LintId::of(&unicode::UNICODE_NOT_NFC),
1396+
LintId::of(&unnecessary_wraps::UNNECESSARY_WRAPS),
13961397
LintId::of(&unnested_or_patterns::UNNESTED_OR_PATTERNS),
13971398
LintId::of(&unused_self::UNUSED_SELF),
13981399
LintId::of(&wildcard_imports::ENUM_GLOB_USE),
@@ -1686,7 +1687,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16861687
LintId::of(&unnamed_address::FN_ADDRESS_COMPARISONS),
16871688
LintId::of(&unnamed_address::VTABLE_ADDRESS_COMPARISONS),
16881689
LintId::of(&unnecessary_sort_by::UNNECESSARY_SORT_BY),
1689-
LintId::of(&unnecessary_wraps::UNNECESSARY_WRAPS),
16901690
LintId::of(&unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME),
16911691
LintId::of(&unused_io_amount::UNUSED_IO_AMOUNT),
16921692
LintId::of(&unused_unit::UNUSED_UNIT),
@@ -1903,7 +1903,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
19031903
LintId::of(&types::UNNECESSARY_CAST),
19041904
LintId::of(&types::VEC_BOX),
19051905
LintId::of(&unnecessary_sort_by::UNNECESSARY_SORT_BY),
1906-
LintId::of(&unnecessary_wraps::UNNECESSARY_WRAPS),
19071906
LintId::of(&unwrap::UNNECESSARY_UNWRAP),
19081907
LintId::of(&useless_conversion::USELESS_CONVERSION),
19091908
LintId::of(&zero_div_zero::ZERO_DIVIDED_BY_ZERO),

clippy_lints/src/unnecessary_wraps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ declare_clippy_lint! {
4848
/// }
4949
/// ```
5050
pub UNNECESSARY_WRAPS,
51-
complexity,
51+
pedantic,
5252
"functions that only return `Ok` or `Some`"
5353
}
5454

0 commit comments

Comments
 (0)