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 _ = 1.000_000_000_000_001e-324_f64; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0e0_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 suggests 0e0_f64, but this quantity is more conventionally written as 0_f64 or 0.0_f64. I'm guessing clippy is simplistically doing "if there is e in the original, then use e in the suggestion" but this isn't great for the underflow case.
Clippy suggests
0e0_f64
, but this quantity is more conventionally written as0_f64
or0.0_f64
. I'm guessing clippy is simplistically doing "if there ise
in the original, then usee
in the suggestion" but this isn't great for the underflow case.Meta
Rust version (
rustc -Vv
):The text was updated successfully, but these errors were encountered: