|
1 | 1 | error: this `min`/`max` combination leads to constant result |
2 | | - --> $DIR/min_max.rs:12:5 |
| 2 | + --> $DIR/min_max.rs:24:5 |
3 | 3 | | |
4 | 4 | LL | min(1, max(3, x)); |
5 | 5 | | ^^^^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::min-max` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: this `min`/`max` combination leads to constant result |
10 | | - --> $DIR/min_max.rs:13:5 |
| 10 | + --> $DIR/min_max.rs:25:5 |
11 | 11 | | |
12 | 12 | LL | min(max(3, x), 1); |
13 | 13 | | ^^^^^^^^^^^^^^^^^ |
14 | 14 |
|
15 | 15 | error: this `min`/`max` combination leads to constant result |
16 | | - --> $DIR/min_max.rs:14:5 |
| 16 | + --> $DIR/min_max.rs:26:5 |
17 | 17 | | |
18 | 18 | LL | max(min(x, 1), 3); |
19 | 19 | | ^^^^^^^^^^^^^^^^^ |
20 | 20 |
|
21 | 21 | error: this `min`/`max` combination leads to constant result |
22 | | - --> $DIR/min_max.rs:15:5 |
| 22 | + --> $DIR/min_max.rs:27:5 |
23 | 23 | | |
24 | 24 | LL | max(3, min(x, 1)); |
25 | 25 | | ^^^^^^^^^^^^^^^^^ |
26 | 26 |
|
27 | 27 | error: this `min`/`max` combination leads to constant result |
28 | | - --> $DIR/min_max.rs:17:5 |
| 28 | + --> $DIR/min_max.rs:29:5 |
29 | 29 | | |
30 | 30 | LL | my_max(3, my_min(x, 1)); |
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^ |
32 | 32 |
|
33 | 33 | error: this `min`/`max` combination leads to constant result |
34 | | - --> $DIR/min_max.rs:29:5 |
| 34 | + --> $DIR/min_max.rs:41:5 |
35 | 35 | | |
36 | 36 | LL | min("Apple", max("Zoo", s)); |
37 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
38 | 38 |
|
39 | 39 | error: this `min`/`max` combination leads to constant result |
40 | | - --> $DIR/min_max.rs:30:5 |
| 40 | + --> $DIR/min_max.rs:42:5 |
41 | 41 | | |
42 | 42 | LL | max(min(s, "Apple"), "Zoo"); |
43 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
44 | 44 |
|
45 | 45 | error: this `min`/`max` combination leads to constant result |
46 | | - --> $DIR/min_max.rs:34:5 |
| 46 | + --> $DIR/min_max.rs:47:5 |
47 | 47 | | |
48 | 48 | LL | x.min(1).max(3); |
49 | 49 | | ^^^^^^^^^^^^^^^ |
50 | 50 |
|
51 | 51 | error: this `min`/`max` combination leads to constant result |
52 | | - --> $DIR/min_max.rs:35:5 |
| 52 | + --> $DIR/min_max.rs:48:5 |
53 | 53 | | |
54 | 54 | LL | x.max(3).min(1); |
55 | 55 | | ^^^^^^^^^^^^^^^ |
56 | 56 |
|
57 | 57 | error: this `min`/`max` combination leads to constant result |
58 | | - --> $DIR/min_max.rs:40:5 |
| 58 | + --> $DIR/min_max.rs:49:5 |
| 59 | + | |
| 60 | +LL | f.max(3f32).min(1f32); |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 62 | + |
| 63 | +error: this `min`/`max` combination leads to constant result |
| 64 | + --> $DIR/min_max.rs:55:5 |
59 | 65 | | |
60 | 66 | LL | max(x.min(1), 3); |
61 | 67 | | ^^^^^^^^^^^^^^^^ |
62 | 68 |
|
63 | 69 | error: this `min`/`max` combination leads to constant result |
64 | | - --> $DIR/min_max.rs:43:5 |
| 70 | + --> $DIR/min_max.rs:58:5 |
65 | 71 | | |
66 | 72 | LL | s.max("Zoo").min("Apple"); |
67 | 73 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
68 | 74 |
|
69 | 75 | error: this `min`/`max` combination leads to constant result |
70 | | - --> $DIR/min_max.rs:44:5 |
| 76 | + --> $DIR/min_max.rs:59:5 |
71 | 77 | | |
72 | 78 | LL | s.min("Apple").max("Zoo"); |
73 | 79 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
74 | 80 |
|
75 | | -error: aborting due to 12 previous errors |
| 81 | +error: aborting due to 13 previous errors |
76 | 82 |
|
0 commit comments