Skip to content

Commit c00dcd0

Browse files
committed
Downgrade large_digit_groups to pedantic
I believe if the user already decided to put underscores in their literal, Clippy should be willing to believe that they put a number of underscores that they felt was readable.
1 parent c669727 commit c00dcd0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clippy_lints/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
514514
if_not_else::IF_NOT_ELSE,
515515
infinite_iter::MAYBE_INFINITE_ITER,
516516
items_after_statements::ITEMS_AFTER_STATEMENTS,
517+
literal_representation::LARGE_DIGIT_GROUPS,
517518
loops::EXPLICIT_INTO_ITER_LOOP,
518519
loops::EXPLICIT_ITER_LOOP,
519520
matches::SINGLE_MATCH_ELSE,
@@ -613,7 +614,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
613614
lifetimes::EXTRA_UNUSED_LIFETIMES,
614615
lifetimes::NEEDLESS_LIFETIMES,
615616
literal_representation::INCONSISTENT_DIGIT_GROUPING,
616-
literal_representation::LARGE_DIGIT_GROUPS,
617617
literal_representation::MISTYPED_LITERAL_SUFFIXES,
618618
literal_representation::UNREADABLE_LITERAL,
619619
loops::EMPTY_LOOP,
@@ -794,7 +794,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
794794
len_zero::LEN_ZERO,
795795
let_if_seq::USELESS_LET_IF_SEQ,
796796
literal_representation::INCONSISTENT_DIGIT_GROUPING,
797-
literal_representation::LARGE_DIGIT_GROUPS,
798797
literal_representation::UNREADABLE_LITERAL,
799798
loops::EMPTY_LOOP,
800799
loops::FOR_KV_MAP,

clippy_lints/src/literal_representation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ declare_clippy_lint! {
9090
/// ```
9191
declare_clippy_lint! {
9292
pub LARGE_DIGIT_GROUPS,
93-
style,
93+
pedantic,
9494
"grouping digits into groups that are too large"
9595
}
9696

0 commit comments

Comments
 (0)