|
1 | 1 | error: log base can be expressed more clearly
|
2 |
| - --> $DIR/floating_point_logbase.rs:7:13 |
| 2 | + --> $DIR/floating_point_logbase.rs:8:13 |
3 | 3 | |
|
4 | 4 | LL | let _ = x.ln() / y.ln();
|
5 | 5 | | ^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::suboptimal-flops` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: log base can be expressed more clearly
|
10 |
| - --> $DIR/floating_point_logbase.rs:8:13 |
| 10 | + --> $DIR/floating_point_logbase.rs:9:13 |
11 | 11 | |
|
12 | 12 | LL | let _ = (x as f32).ln() / y.ln();
|
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(x as f32).log(y)`
|
14 | 14 |
|
15 | 15 | error: log base can be expressed more clearly
|
16 |
| - --> $DIR/floating_point_logbase.rs:9:13 |
| 16 | + --> $DIR/floating_point_logbase.rs:10:13 |
17 | 17 | |
|
18 | 18 | LL | let _ = x.log2() / y.log2();
|
19 | 19 | | ^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
20 | 20 |
|
21 | 21 | error: log base can be expressed more clearly
|
22 |
| - --> $DIR/floating_point_logbase.rs:10:13 |
| 22 | + --> $DIR/floating_point_logbase.rs:11:13 |
23 | 23 | |
|
24 | 24 | LL | let _ = x.log10() / y.log10();
|
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
26 | 26 |
|
27 | 27 | error: log base can be expressed more clearly
|
28 |
| - --> $DIR/floating_point_logbase.rs:11:13 |
| 28 | + --> $DIR/floating_point_logbase.rs:12:13 |
29 | 29 | |
|
30 | 30 | LL | let _ = x.log(5f32) / y.log(5f32);
|
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `x.log(y)`
|
|
0 commit comments