RS.CLIPPY.UNREADABLE_LITERAL
Long literal without underscores
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: unreadable_literal. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Warns if a long integral or floating-point constant does not contain underscores.
Why is this bad?
Reading long numbers is difficult without separators.
Example
61864918973511
Use instead:
61_864_918_973_511
Configuration
-
unreadable-literal-lint-fractions: Should the fraction of a decimal be linted to include separators.(default:
true)