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