1
1
error: this `if` has the same function call as a previous `if`
2
- --> $DIR/same_functions_in_if_condition.rs:37 :15
2
+ --> $DIR/same_functions_in_if_condition.rs:39 :15
3
3
|
4
4
LL | } else if function() {
5
5
| ^^^^^^^^^^
6
6
|
7
7
note: same as this
8
- --> $DIR/same_functions_in_if_condition.rs:36 :8
8
+ --> $DIR/same_functions_in_if_condition.rs:38 :8
9
9
|
10
10
LL | if function() {
11
11
| ^^^^^^^^^^
@@ -16,61 +16,61 @@ LL | #![deny(clippy::same_functions_in_if_condition)]
16
16
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
17
18
18
error: this `if` has the same function call as a previous `if`
19
- --> $DIR/same_functions_in_if_condition.rs:42 :15
19
+ --> $DIR/same_functions_in_if_condition.rs:44 :15
20
20
|
21
21
LL | } else if fn_arg(a) {
22
22
| ^^^^^^^^^
23
23
|
24
24
note: same as this
25
- --> $DIR/same_functions_in_if_condition.rs:41 :8
25
+ --> $DIR/same_functions_in_if_condition.rs:43 :8
26
26
|
27
27
LL | if fn_arg(a) {
28
28
| ^^^^^^^^^
29
29
30
30
error: this `if` has the same function call as a previous `if`
31
- --> $DIR/same_functions_in_if_condition.rs:47 :15
31
+ --> $DIR/same_functions_in_if_condition.rs:49 :15
32
32
|
33
33
LL | } else if obj.method() {
34
34
| ^^^^^^^^^^^^
35
35
|
36
36
note: same as this
37
- --> $DIR/same_functions_in_if_condition.rs:46 :8
37
+ --> $DIR/same_functions_in_if_condition.rs:48 :8
38
38
|
39
39
LL | if obj.method() {
40
40
| ^^^^^^^^^^^^
41
41
42
42
error: this `if` has the same function call as a previous `if`
43
- --> $DIR/same_functions_in_if_condition.rs:52 :15
43
+ --> $DIR/same_functions_in_if_condition.rs:54 :15
44
44
|
45
45
LL | } else if obj.method_arg(a) {
46
46
| ^^^^^^^^^^^^^^^^^
47
47
|
48
48
note: same as this
49
- --> $DIR/same_functions_in_if_condition.rs:51 :8
49
+ --> $DIR/same_functions_in_if_condition.rs:53 :8
50
50
|
51
51
LL | if obj.method_arg(a) {
52
52
| ^^^^^^^^^^^^^^^^^
53
53
54
54
error: this `if` has the same function call as a previous `if`
55
- --> $DIR/same_functions_in_if_condition.rs:59 :15
55
+ --> $DIR/same_functions_in_if_condition.rs:61 :15
56
56
|
57
57
LL | } else if v.pop().is_none() {
58
58
| ^^^^^^^^^^^^^^^^^
59
59
|
60
60
note: same as this
61
- --> $DIR/same_functions_in_if_condition.rs:57 :8
61
+ --> $DIR/same_functions_in_if_condition.rs:59 :8
62
62
|
63
63
LL | if v.pop().is_none() {
64
64
| ^^^^^^^^^^^^^^^^^
65
65
66
66
error: this `if` has the same function call as a previous `if`
67
- --> $DIR/same_functions_in_if_condition.rs:64 :15
67
+ --> $DIR/same_functions_in_if_condition.rs:66 :15
68
68
|
69
69
LL | } else if v.len() == 42 {
70
70
| ^^^^^^^^^^^^^
71
71
|
72
72
note: same as this
73
- --> $DIR/same_functions_in_if_condition.rs:62 :8
73
+ --> $DIR/same_functions_in_if_condition.rs:64 :8
74
74
|
75
75
LL | if v.len() == 42 {
76
76
| ^^^^^^^^^^^^^
0 commit comments