@@ -21,15 +21,15 @@ LL | | if true {
21
21
... |
22
22
LL | | a
23
23
LL | | },
24
- | |_________ ^
24
+ | |__________ ^
25
25
= note: `-D clippy::match-same-arms` implied by `-D warnings`
26
26
= help: to override `-D warnings` add `#[allow(clippy::match_same_arms)]`
27
27
28
28
error: this match arm has an identical body to another arm
29
29
--> tests/ui/match_same_arms2.rs:40:9
30
30
|
31
31
LL | 51 => foo(),
32
- | ^^^^^^^^^^^
32
+ | ^^^^^^^^^^^^
33
33
|
34
34
= help: try changing either arm body
35
35
help: or try merging the arm patterns and removing the obsolete arm
@@ -43,7 +43,7 @@ error: this match arm has an identical body to another arm
43
43
--> tests/ui/match_same_arms2.rs:46:9
44
44
|
45
45
LL | None => 24,
46
- | ^^^^^^^^^^
46
+ | ^^^^^^^^^^^
47
47
|
48
48
= help: try changing either arm body
49
49
help: or try merging the arm patterns and removing the obsolete arm
@@ -57,7 +57,7 @@ error: this match arm has an identical body to another arm
57
57
--> tests/ui/match_same_arms2.rs:68:9
58
58
|
59
59
LL | (None, Some(a)) => bar(a),
60
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
60
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
61
61
|
62
62
= help: try changing either arm body
63
63
help: or try merging the arm patterns and removing the obsolete arm
@@ -71,7 +71,7 @@ error: this match arm has an identical body to another arm
71
71
--> tests/ui/match_same_arms2.rs:82:9
72
72
|
73
73
LL | (None, Some(a)) if a == 42 => a,
74
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
74
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75
75
|
76
76
= help: try changing either arm body
77
77
help: or try merging the arm patterns and removing the obsolete arm
@@ -85,7 +85,7 @@ error: this match arm has an identical body to another arm
85
85
--> tests/ui/match_same_arms2.rs:87:9
86
86
|
87
87
LL | (Some(a), ..) => bar(a),
88
- | ^^^^^^^^^^^^^^^^^^^^^^^
88
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
89
89
|
90
90
= help: try changing either arm body
91
91
help: or try merging the arm patterns and removing the obsolete arm
@@ -98,7 +98,7 @@ error: this match arm has an identical body to another arm
98
98
--> tests/ui/match_same_arms2.rs:121:9
99
99
|
100
100
LL | (Ok(x), Some(_)) => println!("ok {}", x),
101
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
101
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102
102
|
103
103
= help: try changing either arm body
104
104
help: or try merging the arm patterns and removing the obsolete arm
@@ -111,7 +111,7 @@ error: this match arm has an identical body to another arm
111
111
--> tests/ui/match_same_arms2.rs:137:9
112
112
|
113
113
LL | Ok(_) => println!("ok"),
114
- | ^^^^^^^^^^^^^^^^^^^^^^^
114
+ | ^^^^^^^^^^^^^^^^^^^^^^^^
115
115
|
116
116
= help: try changing either arm body
117
117
help: or try merging the arm patterns and removing the obsolete arm
@@ -127,7 +127,7 @@ error: this match arm has an identical body to another arm
127
127
LL | / 1 => {
128
128
LL | | empty!(0);
129
129
LL | | },
130
- | |_________ ^
130
+ | |__________ ^
131
131
|
132
132
= help: try changing either arm body
133
133
help: or try merging the arm patterns and removing the obsolete arm
@@ -143,7 +143,7 @@ error: this match arm has an identical body to another arm
143
143
--> tests/ui/match_same_arms2.rs:215:9
144
144
|
145
145
LL | Foo::X(0) => 1,
146
- | ^^^^^^^^^^^^^^
146
+ | ^^^^^^^^^^^^^^^
147
147
|
148
148
= help: try changing either arm body
149
149
help: or try merging the arm patterns and removing the obsolete arm
@@ -157,7 +157,7 @@ error: this match arm has an identical body to another arm
157
157
--> tests/ui/match_same_arms2.rs:225:9
158
158
|
159
159
LL | Foo::Z(_) => 1,
160
- | ^^^^^^^^^^^^^^
160
+ | ^^^^^^^^^^^^^^^
161
161
|
162
162
= help: try changing either arm body
163
163
help: or try merging the arm patterns and removing the obsolete arm
@@ -170,7 +170,7 @@ error: this match arm has an identical body to another arm
170
170
--> tests/ui/match_same_arms2.rs:248:9
171
171
|
172
172
LL | Some(Bar { y: 0, x: 5, .. }) => 1,
173
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
173
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
174
174
|
175
175
= help: try changing either arm body
176
176
help: or try merging the arm patterns and removing the obsolete arm
@@ -184,7 +184,7 @@ error: this match arm has an identical body to another arm
184
184
--> tests/ui/match_same_arms2.rs:262:9
185
185
|
186
186
LL | 1 => cfg!(not_enable),
187
- | ^^^^^^^^^^^^^^^^^^^^^
187
+ | ^^^^^^^^^^^^^^^^^^^^^^
188
188
|
189
189
= help: try changing either arm body
190
190
help: or try merging the arm patterns and removing the obsolete arm
@@ -198,7 +198,7 @@ error: this match arm has an identical body to another arm
198
198
--> tests/ui/match_same_arms2.rs:278:17
199
199
|
200
200
LL | MaybeStaticStr::Borrowed(s) => s,
201
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
201
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
202
202
|
203
203
= help: try changing either arm body
204
204
help: or try merging the arm patterns and removing the obsolete arm
0 commit comments