fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: hypotenuse can be computed more accurately 2 --> $DIR/floating_point_hypot.rs:6:13 3 | 4LL | let _ = (x * x + y * y).sqrt(); 5 | ^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.hypot(y)` 6 | 7 = note: `-D clippy::imprecise-flops` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::imprecise_flops)]` 9 10error: hypotenuse can be computed more accurately 11 --> $DIR/floating_point_hypot.rs:7:13 12 | 13LL | let _ = ((x + 1f32) * (x + 1f32) + y * y).sqrt(); 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x + 1f32).hypot(y)` 15 16error: hypotenuse can be computed more accurately 17 --> $DIR/floating_point_hypot.rs:8:13 18 | 19LL | let _ = (x.powi(2) + y.powi(2)).sqrt(); 20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.hypot(y)` 21 22error: aborting due to 3 previous errors 23