fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: used the `ceil` method with a whole number float 2 --> $DIR/unused_rounding.rs:4:13 3 | 4LL | let _ = 1f32.ceil(); 5 | ^^^^^^^^^^^ help: remove the `ceil` method call: `1f32` 6 | 7 = note: `-D clippy::unused-rounding` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::unused_rounding)]` 9 10error: used the `floor` method with a whole number float 11 --> $DIR/unused_rounding.rs:5:13 12 | 13LL | let _ = 1.0f64.floor(); 14 | ^^^^^^^^^^^^^^ help: remove the `floor` method call: `1.0f64` 15 16error: used the `round` method with a whole number float 17 --> $DIR/unused_rounding.rs:6:13 18 | 19LL | let _ = 1.00f32.round(); 20 | ^^^^^^^^^^^^^^^ help: remove the `round` method call: `1.00f32` 21 22error: used the `round` method with a whole number float 23 --> $DIR/unused_rounding.rs:12:13 24 | 25LL | let _ = 3.0_f32.round(); 26 | ^^^^^^^^^^^^^^^ help: remove the `round` method call: `3.0_f32` 27 28error: used the `round` method with a whole number float 29 --> $DIR/unused_rounding.rs:14:13 30 | 31LL | let _ = 3_3.0_0_f32.round(); 32 | ^^^^^^^^^^^^^^^^^^^ help: remove the `round` method call: `3_3.0_0_f32` 33 34error: aborting due to 5 previous errors 35