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
warning: float has excessive precision --> src/main.rs:2:13 |2 | let _ = 2.225_073_858_507_201_1e-308_f64; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `2.225_073_858_507_201e-_308_f64` | = note: `#[warn(clippy::excessive_precision)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
Clippy's suggested diff is:
- let _ = 2.225_073_858_507_201_1e-308_f64;+ let _ = 2.225_073_858_507_201e-_308_f64;
which has the floating point exponent written as e-_308 rather than the more readable e-308.
I'm guessing something in the underscore insertion is indirectly based on (-308).to_string().len() > 3.
Clippy's suggested diff is:
which has the floating point exponent written as
e-_308
rather than the more readablee-308
.I'm guessing something in the underscore insertion is indirectly based on
(-308).to_string().len() > 3
.Meta
Rust version (
rustc -Vv
):The text was updated successfully, but these errors were encountered: