You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a project there are a lot of numbers like this: 12345678900 which means 123456789.00, maybe because we are using rust_decimal::Decimal::new(12345678900, 2).
unreadable_literal makes me write instead: 12_345_678_900 which as you can see is misleading during the code review.
Why not also suggest 1_23_45_67_89_00, maybe changing the settings?
Advantage
No response
Drawbacks
No response
Example
<code>
Could be written as:
<code>
The text was updated successfully, but these errors were encountered:
What it does
In a project there are a lot of numbers like this:
12345678900
which means123456789.00
, maybe because we are usingrust_decimal::Decimal::new(12345678900, 2)
.unreadable_literal makes me write instead:
12_345_678_900
which as you can see is misleading during the code review.Why not also suggest
1_23_45_67_89_00
, maybe changing the settings?Advantage
No response
Drawbacks
No response
Example
<code>
Could be written as:
<code>
The text was updated successfully, but these errors were encountered: