Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore cast_precision_loss pedantic clippy lint
warning: casting `isize` to `f64` causes a loss of precision on targets with 64-bit wide pointers (`isize` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide) --> src/diyfp.rs:259:21 | 259 | if dk - k as f64 > 0.0 { | ^^^^^^^^ | ::: src/lib.rs:196:9 | 196 | / dtoa! { 197 | | floating_type: f32, 198 | | significand_type: u32, 199 | | exponent_type: i32, ... | 210 | | min_power: (-36), 211 | | }; | |_________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss = note: requested on the command line with `-W clippy::cast-precision-loss` = note: this warning originates in the macro `diyfp` which comes from the expansion of the macro `dtoa` (in Nightly builds, run with -Z macro-backtrace for more info) warning: casting `isize` to `f64` causes a loss of precision on targets with 64-bit wide pointers (`isize` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide) --> src/diyfp.rs:256:22 | 256 | let dk = (3 - $diy_significand_size - e) as f64 * 0.30102999566398114f64 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ::: src/lib.rs:242:9 | 242 | / dtoa! { 243 | | floating_type: f64, 244 | | significand_type: u64, 245 | | exponent_type: isize, ... | 256 | | min_power: (-348), 257 | | }; | |_________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss = note: this warning originates in the macro `diyfp` which comes from the expansion of the macro `dtoa` (in Nightly builds, run with -Z macro-backtrace for more info) warning: casting `isize` to `f64` causes a loss of precision on targets with 64-bit wide pointers (`isize` is 64 bits wide, but `f64`'s mantissa is only 52 bits wide) --> src/diyfp.rs:259:21 | 259 | if dk - k as f64 > 0.0 { | ^^^^^^^^ | ::: src/lib.rs:242:9 | 242 | / dtoa! { 243 | | floating_type: f64, 244 | | significand_type: u64, 245 | | exponent_type: isize, ... | 256 | | min_power: (-348), 257 | | }; | |_________- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_precision_loss = note: this warning originates in the macro `diyfp` which comes from the expansion of the macro `dtoa` (in Nightly builds, run with -Z macro-backtrace for more info)
- Loading branch information