2020-06-15 16:55:12 +00:00
|
|
|
error: log base can be expressed more clearly
|
2020-06-01 21:32:52 +00:00
|
|
|
--> $DIR/floating_point_logbase.rs:7:13
|
|
|
|
|
|
|
|
|
LL | let _ = x.ln() / y.ln();
|
|
|
|
| ^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::suboptimal-flops` implied by `-D warnings`
|
|
|
|
|
2020-06-15 16:55:12 +00:00
|
|
|
error: log base can be expressed more clearly
|
2020-06-01 21:32:52 +00:00
|
|
|
--> $DIR/floating_point_logbase.rs:8:13
|
|
|
|
|
|
|
|
|
LL | let _ = x.log2() / y.log2();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
|
|
|
|
2020-06-15 16:55:12 +00:00
|
|
|
error: log base can be expressed more clearly
|
2020-06-01 21:32:52 +00:00
|
|
|
--> $DIR/floating_point_logbase.rs:9:13
|
|
|
|
|
|
|
|
|
LL | let _ = x.log10() / y.log10();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
|
|
|
|
2020-06-15 16:55:12 +00:00
|
|
|
error: log base can be expressed more clearly
|
2020-06-01 21:32:52 +00:00
|
|
|
--> $DIR/floating_point_logbase.rs:10:13
|
|
|
|
|
|
|
|
|
LL | let _ = x.log(5f32) / y.log(5f32);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|