Skip to content

Commit 95399f8

Browse files
committed
Downgrade useless_let_if_seq to nursery
1 parent e1842b0 commit 95399f8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

clippy_lints/src/let_if_seq.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ declare_clippy_lint! {
5050
/// };
5151
/// ```
5252
pub USELESS_LET_IF_SEQ,
53-
style,
53+
nursery,
5454
"unidiomatic `let mut` declaration followed by initialization in `if`"
5555
}
5656

clippy_lints/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12661266
LintId::of(&large_enum_variant::LARGE_ENUM_VARIANT),
12671267
LintId::of(&len_zero::LEN_WITHOUT_IS_EMPTY),
12681268
LintId::of(&len_zero::LEN_ZERO),
1269-
LintId::of(&let_if_seq::USELESS_LET_IF_SEQ),
12701269
LintId::of(&let_underscore::LET_UNDERSCORE_LOCK),
12711270
LintId::of(&lifetimes::EXTRA_UNUSED_LIFETIMES),
12721271
LintId::of(&lifetimes::NEEDLESS_LIFETIMES),
@@ -1476,7 +1475,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14761475
LintId::of(&inherent_to_string::INHERENT_TO_STRING),
14771476
LintId::of(&len_zero::LEN_WITHOUT_IS_EMPTY),
14781477
LintId::of(&len_zero::LEN_ZERO),
1479-
LintId::of(&let_if_seq::USELESS_LET_IF_SEQ),
14801478
LintId::of(&literal_representation::INCONSISTENT_DIGIT_GROUPING),
14811479
LintId::of(&loops::EMPTY_LOOP),
14821480
LintId::of(&loops::FOR_KV_MAP),
@@ -1728,6 +1726,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
17281726
LintId::of(&floating_point_arithmetic::IMPRECISE_FLOPS),
17291727
LintId::of(&floating_point_arithmetic::SUBOPTIMAL_FLOPS),
17301728
LintId::of(&future_not_send::FUTURE_NOT_SEND),
1729+
LintId::of(&let_if_seq::USELESS_LET_IF_SEQ),
17311730
LintId::of(&missing_const_for_fn::MISSING_CONST_FOR_FN),
17321731
LintId::of(&mutable_debug_assertion::DEBUG_ASSERT_WITH_MUT_CALL),
17331732
LintId::of(&mutex_atomic::MUTEX_INTEGER),

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2469,7 +2469,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
24692469
},
24702470
Lint {
24712471
name: "useless_let_if_seq",
2472-
group: "style",
2472+
group: "nursery",
24732473
desc: "unidiomatic `let mut` declaration followed by initialization in `if`",
24742474
deprecation: None,
24752475
module: "let_if_seq",

0 commit comments

Comments
 (0)