Skip to content

Commit c6bb23d

Browse files
author
Henri Lunnikivi
committed
cargo dev update_lints
1 parent 4c83e62 commit c6bb23d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11851185
LintId::of(&eta_reduction::REDUNDANT_CLOSURE_FOR_METHOD_CALLS),
11861186
LintId::of(&excessive_bools::FN_PARAMS_EXCESSIVE_BOOLS),
11871187
LintId::of(&excessive_bools::STRUCT_EXCESSIVE_BOOLS),
1188-
LintId::of(&field_reassign_with_default::FIELD_REASSIGN_WITH_DEFAULT),
11891188
LintId::of(&functions::MUST_USE_CANDIDATE),
11901189
LintId::of(&functions::TOO_MANY_LINES),
11911190
LintId::of(&if_not_else::IF_NOT_ELSE),
@@ -1302,6 +1301,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13021301
LintId::of(&eval_order_dependence::DIVERGING_SUB_EXPRESSION),
13031302
LintId::of(&eval_order_dependence::EVAL_ORDER_DEPENDENCE),
13041303
LintId::of(&explicit_write::EXPLICIT_WRITE),
1304+
LintId::of(&field_reassign_with_default::FIELD_REASSIGN_WITH_DEFAULT),
13051305
LintId::of(&float_equality_without_abs::FLOAT_EQUALITY_WITHOUT_ABS),
13061306
LintId::of(&float_literal::EXCESSIVE_PRECISION),
13071307
LintId::of(&format::USELESS_FORMAT),
@@ -1537,6 +1537,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15371537
LintId::of(&enum_variants::MODULE_INCEPTION),
15381538
LintId::of(&eq_op::OP_REF),
15391539
LintId::of(&eta_reduction::REDUNDANT_CLOSURE),
1540+
LintId::of(&field_reassign_with_default::FIELD_REASSIGN_WITH_DEFAULT),
15401541
LintId::of(&float_literal::EXCESSIVE_PRECISION),
15411542
LintId::of(&formatting::SUSPICIOUS_ASSIGNMENT_FORMATTING),
15421543
LintId::of(&formatting::SUSPICIOUS_ELSE_FORMATTING),

src/lintlist/mod.rs

Lines changed: 1 addition & 1 deletion
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)