Skip to content

Commit 4cf5b5f

Browse files
committed
Run update lints
1 parent deecfb5 commit 4cf5b5f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clippy_lints/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
523523
&cognitive_complexity::COGNITIVE_COMPLEXITY,
524524
&collapsible_if::COLLAPSIBLE_IF,
525525
&comparison_chain::COMPARISON_CHAIN,
526-
&len_zero::COMPARISON_TO_EMPTY,
527526
&copies::IFS_SAME_COND,
528527
&copies::IF_SAME_THEN_ELSE,
529528
&copies::MATCH_SAME_ARMS,
@@ -609,6 +608,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
609608
&large_const_arrays::LARGE_CONST_ARRAYS,
610609
&large_enum_variant::LARGE_ENUM_VARIANT,
611610
&large_stack_arrays::LARGE_STACK_ARRAYS,
611+
&len_zero::COMPARISON_TO_EMPTY,
612612
&len_zero::LEN_WITHOUT_IS_EMPTY,
613613
&len_zero::LEN_ZERO,
614614
&let_if_seq::USELESS_LET_IF_SEQ,
@@ -1300,7 +1300,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13001300
LintId::of(&bytecount::NAIVE_BYTECOUNT),
13011301
LintId::of(&collapsible_if::COLLAPSIBLE_IF),
13021302
LintId::of(&comparison_chain::COMPARISON_CHAIN),
1303-
LintId::of(&len_zero::COMPARISON_TO_EMPTY),
13041303
LintId::of(&copies::IFS_SAME_COND),
13051304
LintId::of(&copies::IF_SAME_THEN_ELSE),
13061305
LintId::of(&derive::DERIVE_HASH_XOR_EQ),
@@ -1350,6 +1349,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13501349
LintId::of(&int_plus_one::INT_PLUS_ONE),
13511350
LintId::of(&large_const_arrays::LARGE_CONST_ARRAYS),
13521351
LintId::of(&large_enum_variant::LARGE_ENUM_VARIANT),
1352+
LintId::of(&len_zero::COMPARISON_TO_EMPTY),
13531353
LintId::of(&len_zero::LEN_WITHOUT_IS_EMPTY),
13541354
LintId::of(&len_zero::LEN_ZERO),
13551355
LintId::of(&let_underscore::LET_UNDERSCORE_LOCK),
@@ -1557,7 +1557,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15571557
LintId::of(&blocks_in_if_conditions::BLOCKS_IN_IF_CONDITIONS),
15581558
LintId::of(&collapsible_if::COLLAPSIBLE_IF),
15591559
LintId::of(&comparison_chain::COMPARISON_CHAIN),
1560-
LintId::of(&len_zero::COMPARISON_TO_EMPTY),
15611560
LintId::of(&doc::MISSING_SAFETY_DOC),
15621561
LintId::of(&doc::NEEDLESS_DOCTEST_MAIN),
15631562
LintId::of(&enum_variants::ENUM_VARIANT_NAMES),
@@ -1573,6 +1572,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15731572
LintId::of(&functions::RESULT_UNIT_ERR),
15741573
LintId::of(&if_let_some_result::IF_LET_SOME_RESULT),
15751574
LintId::of(&inherent_to_string::INHERENT_TO_STRING),
1575+
LintId::of(&len_zero::COMPARISON_TO_EMPTY),
15761576
LintId::of(&len_zero::LEN_WITHOUT_IS_EMPTY),
15771577
LintId::of(&len_zero::LEN_ZERO),
15781578
LintId::of(&literal_representation::INCONSISTENT_DIGIT_GROUPING),

src/lintlist/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ vec![
294294
Lint {
295295
name: "comparison_to_empty",
296296
group: "style",
297-
desc: "default lint description",
297+
desc: "checking `x == \"\"` or `x == []` (or similar) when `.is_empty()` could be used instead",
298298
deprecation: None,
299-
module: "comparison_to_empty",
299+
module: "len_zero",
300300
},
301301
Lint {
302302
name: "copy_iterator",

0 commit comments

Comments
 (0)