Skip to content

Commit 73363e5

Browse files
author
Henri Lunnikivi
committed
cargo dev update_lints
1 parent 83f90cc commit 73363e5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
77

8-
[There are over 351 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
8+
[There are over 350 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
99

1010
We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you:
1111

clippy_lints/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11761176
LintId::of(&eta_reduction::REDUNDANT_CLOSURE_FOR_METHOD_CALLS),
11771177
LintId::of(&excessive_bools::FN_PARAMS_EXCESSIVE_BOOLS),
11781178
LintId::of(&excessive_bools::STRUCT_EXCESSIVE_BOOLS),
1179-
LintId::of(&field_reassign_with_default::FIELD_REASSIGN_WITH_DEFAULT),
11801179
LintId::of(&functions::MUST_USE_CANDIDATE),
11811180
LintId::of(&functions::TOO_MANY_LINES),
11821181
LintId::of(&if_not_else::IF_NOT_ELSE),
@@ -1292,6 +1291,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12921291
LintId::of(&eval_order_dependence::DIVERGING_SUB_EXPRESSION),
12931292
LintId::of(&eval_order_dependence::EVAL_ORDER_DEPENDENCE),
12941293
LintId::of(&explicit_write::EXPLICIT_WRITE),
1294+
LintId::of(&field_reassign_with_default::FIELD_REASSIGN_WITH_DEFAULT),
12951295
LintId::of(&float_equality_without_abs::FLOAT_EQUALITY_WITHOUT_ABS),
12961296
LintId::of(&float_literal::EXCESSIVE_PRECISION),
12971297
LintId::of(&format::USELESS_FORMAT),
@@ -1527,6 +1527,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15271527
LintId::of(&enum_variants::MODULE_INCEPTION),
15281528
LintId::of(&eq_op::OP_REF),
15291529
LintId::of(&eta_reduction::REDUNDANT_CLOSURE),
1530+
LintId::of(&field_reassign_with_default::FIELD_REASSIGN_WITH_DEFAULT),
15301531
LintId::of(&float_literal::EXCESSIVE_PRECISION),
15311532
LintId::of(&formatting::SUSPICIOUS_ASSIGNMENT_FORMATTING),
15321533
LintId::of(&formatting::SUSPICIOUS_ELSE_FORMATTING),

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
614614
},
615615
Lint {
616616
name: "field_reassign_with_default",
617-
group: "pedantic",
617+
group: "style",
618618
desc: "binding initialized with Default should have its fields set in the initializer",
619619
deprecation: None,
620620
module: "field_reassign_with_default",

0 commit comments

Comments
 (0)