Skip to content

Commit ef8ed88

Browse files
committed
Enable decimal_literal_representation
1 parent 2b2a045 commit ef8ed88

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clippy_config/src/conf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ define_Conf! {
678678
lint_inconsistent_struct_field_initializers: bool = false,
679679
/// The lower bound for linting decimal literals
680680
#[lints(decimal_literal_representation)]
681-
literal_representation_threshold: u64 = 16384,
681+
literal_representation_threshold: u64 = 0x4000,
682682
/// Whether the matches should be considered by the lint, and whether there should
683683
/// be filtering for common types.
684684
#[lints(manual_let_else)]

tests/dogfood.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ fn run_clippy_for_package(project: &str) -> bool {
9292
"-D",
9393
"clippy::dbg_macro",
9494
"-D",
95+
"clippy::decimal_literal_representation",
96+
"-D",
9597
"clippy::derive_partial_eq_without_eq",
9698
"-D",
9799
"clippy::iter_on_single_items",

0 commit comments

Comments
 (0)