Skip to content

Commit 86b0dd4

Browse files
committed
Downgrade option_option to pedantic
1 parent c211cea commit 86b0dd4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

clippy_lints/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11251125
LintId::of(&types::CAST_SIGN_LOSS),
11261126
LintId::of(&types::INVALID_UPCAST_COMPARISONS),
11271127
LintId::of(&types::LINKEDLIST),
1128+
LintId::of(&types::OPTION_OPTION),
11281129
LintId::of(&unicode::NON_ASCII_LITERAL),
11291130
LintId::of(&unicode::UNICODE_NOT_NFC),
11301131
LintId::of(&unused_self::UNUSED_SELF),
@@ -1375,7 +1376,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13751376
LintId::of(&types::FN_TO_NUMERIC_CAST_WITH_TRUNCATION),
13761377
LintId::of(&types::IMPLICIT_HASHER),
13771378
LintId::of(&types::LET_UNIT_VALUE),
1378-
LintId::of(&types::OPTION_OPTION),
13791379
LintId::of(&types::TYPE_COMPLEXITY),
13801380
LintId::of(&types::UNIT_ARG),
13811381
LintId::of(&types::UNIT_CMP),
@@ -1565,7 +1565,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15651565
LintId::of(&transmute::TRANSMUTE_PTR_TO_REF),
15661566
LintId::of(&types::BORROWED_BOX),
15671567
LintId::of(&types::CHAR_LIT_AS_U8),
1568-
LintId::of(&types::OPTION_OPTION),
15691568
LintId::of(&types::TYPE_COMPLEXITY),
15701569
LintId::of(&types::UNIT_ARG),
15711570
LintId::of(&types::UNNECESSARY_CAST),

clippy_lints/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ declare_clippy_lint! {
108108
/// }
109109
/// ```
110110
pub OPTION_OPTION,
111-
complexity,
111+
pedantic,
112112
"usage of `Option<Option<T>>`"
113113
}
114114

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
15661566
},
15671567
Lint {
15681568
name: "option_option",
1569-
group: "complexity",
1569+
group: "pedantic",
15701570
desc: "usage of `Option<Option<T>>`",
15711571
deprecation: None,
15721572
module: "types",

0 commit comments

Comments
 (0)