|
1 | 1 | error: this closure returns the unit type which also implements Ord
|
2 |
| - --> tests/ui/unit_return_expecting_ord.rs:19:25 |
| 2 | + --> tests/ui/unit_return_expecting_ord.rs:18:25 |
3 | 3 | |
|
4 | 4 | LL | structs.sort_by_key(|s| {
|
5 | 5 | | ^^^
|
6 | 6 | |
|
7 | 7 | help: probably caused by this trailing semicolon
|
8 |
| - --> tests/ui/unit_return_expecting_ord.rs:21:24 |
| 8 | + --> tests/ui/unit_return_expecting_ord.rs:20:24 |
9 | 9 | |
|
10 | 10 | LL | double(s.field);
|
11 | 11 | | ^
|
12 | 12 | = note: `-D clippy::unit-return-expecting-ord` implied by `-D warnings`
|
13 | 13 | = help: to override `-D warnings` add `#[allow(clippy::unit_return_expecting_ord)]`
|
14 | 14 |
|
15 | 15 | error: this closure returns the unit type which also implements PartialOrd
|
16 |
| - --> tests/ui/unit_return_expecting_ord.rs:24:30 |
| 16 | + --> tests/ui/unit_return_expecting_ord.rs:23:30 |
17 | 17 | |
|
18 | 18 | LL | structs.is_sorted_by_key(|s| {
|
19 | 19 | | ^^^
|
20 | 20 | |
|
21 | 21 | help: probably caused by this trailing semicolon
|
22 |
| - --> tests/ui/unit_return_expecting_ord.rs:26:24 |
| 22 | + --> tests/ui/unit_return_expecting_ord.rs:25:24 |
23 | 23 | |
|
24 | 24 | LL | double(s.field);
|
25 | 25 | | ^
|
26 | 26 |
|
27 | 27 | error: this closure returns the unit type which also implements PartialOrd
|
28 |
| - --> tests/ui/unit_return_expecting_ord.rs:28:30 |
| 28 | + --> tests/ui/unit_return_expecting_ord.rs:27:30 |
29 | 29 | |
|
30 | 30 | LL | structs.is_sorted_by_key(|s| {
|
31 | 31 | | ^^^
|
32 | 32 |
|
33 | 33 | error: this closure returns the unit type which also implements Ord
|
34 |
| - --> tests/ui/unit_return_expecting_ord.rs:39:25 |
| 34 | + --> tests/ui/unit_return_expecting_ord.rs:38:25 |
35 | 35 | |
|
36 | 36 | LL | structs.sort_by_key(|s| unit(s.field));
|
37 | 37 | | ^^^
|
|
0 commit comments