Closed
Description
I have a long literal float, which clippy warns that it lacks literal separators:
warning: long literal lacking separators
--> src/lib.rs:58:35
|
58 | const EARTH_YEAR_RATIO: f64 = 164.79132032;
| ^^^^^^^^^^^^ help: consider: `164.791_320_32`
|
= note: `#[warn(clippy::unreadable_literal)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
But after fixing it, clippy gives an error saying mistyped literal suffix
error: mistyped literal suffix
--> src/lib.rs:58:35
|
58 | const EARTH_YEAR_RATIO: f64 = 164.791_320_32;
| ^^^^^^^^^^^^^^ help: did you mean to write: `164.791_320_f32`
|
= note: `#[deny(clippy::mistyped_literal_suffixes)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mistyped_literal_suffixes
Related to: #3091
$ cargo clippy -V
clippy 0.0.212 (3aea860 2019-09-03)