@@ -89,11 +89,11 @@ note: same as this
89
89
|
90
90
LL | Ok(3) => println!("ok"),
91
91
| ^^^^^^^^^^^^^^
92
- note : consider refactoring into `Ok(3) | Ok(_)`
93
- --> $DIR/matches.rs:53:18
92
+ help : consider refactoring into `Ok(3) | Ok(_)`
93
+ --> $DIR/matches.rs:53:9
94
94
|
95
95
LL | Ok(3) => println!("ok"),
96
- | ^^^^^^^^^ ^^^^^
96
+ | ^^^^^
97
97
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
98
98
99
99
error: Err(_) will match all errors, maybe not a good idea
@@ -115,11 +115,11 @@ note: same as this
115
115
|
116
116
LL | Ok(3) => println!("ok"),
117
117
| ^^^^^^^^^^^^^^
118
- note : consider refactoring into `Ok(3) | Ok(_)`
119
- --> $DIR/matches.rs:59:18
118
+ help : consider refactoring into `Ok(3) | Ok(_)`
119
+ --> $DIR/matches.rs:59:9
120
120
|
121
121
LL | Ok(3) => println!("ok"),
122
- | ^^^^^^^^^ ^^^^^
122
+ | ^^^^^
123
123
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
124
124
125
125
error: Err(_) will match all errors, maybe not a good idea
@@ -141,11 +141,11 @@ note: same as this
141
141
|
142
142
LL | Ok(3) => println!("ok"),
143
143
| ^^^^^^^^^^^^^^
144
- note : consider refactoring into `Ok(3) | Ok(_)`
145
- --> $DIR/matches.rs:65:18
144
+ help : consider refactoring into `Ok(3) | Ok(_)`
145
+ --> $DIR/matches.rs:65:9
146
146
|
147
147
LL | Ok(3) => println!("ok"),
148
- | ^^^^^^^^^ ^^^^^
148
+ | ^^^^^
149
149
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
150
150
151
151
error: this `match` has identical arm bodies
@@ -159,11 +159,11 @@ note: same as this
159
159
|
160
160
LL | Ok(3) => println!("ok"),
161
161
| ^^^^^^^^^^^^^^
162
- note : consider refactoring into `Ok(3) | Ok(_)`
163
- --> $DIR/matches.rs:74:18
162
+ help : consider refactoring into `Ok(3) | Ok(_)`
163
+ --> $DIR/matches.rs:74:9
164
164
|
165
165
LL | Ok(3) => println!("ok"),
166
- | ^^^^^^^^^ ^^^^^
166
+ | ^^^^^
167
167
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
168
168
169
169
error: this `match` has identical arm bodies
@@ -177,11 +177,11 @@ note: same as this
177
177
|
178
178
LL | Ok(3) => println!("ok"),
179
179
| ^^^^^^^^^^^^^^
180
- note : consider refactoring into `Ok(3) | Ok(_)`
181
- --> $DIR/matches.rs:81:18
180
+ help : consider refactoring into `Ok(3) | Ok(_)`
181
+ --> $DIR/matches.rs:81:9
182
182
|
183
183
LL | Ok(3) => println!("ok"),
184
- | ^^^^^^^^^ ^^^^^
184
+ | ^^^^^
185
185
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
186
186
187
187
error: this `match` has identical arm bodies
@@ -195,11 +195,11 @@ note: same as this
195
195
|
196
196
LL | Ok(3) => println!("ok"),
197
197
| ^^^^^^^^^^^^^^
198
- note : consider refactoring into `Ok(3) | Ok(_)`
199
- --> $DIR/matches.rs:87:18
198
+ help : consider refactoring into `Ok(3) | Ok(_)`
199
+ --> $DIR/matches.rs:87:9
200
200
|
201
201
LL | Ok(3) => println!("ok"),
202
- | ^^^^^^^^^ ^^^^^
202
+ | ^^^^^
203
203
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
204
204
205
205
error: this `match` has identical arm bodies
@@ -213,11 +213,11 @@ note: same as this
213
213
|
214
214
LL | Ok(3) => println!("ok"),
215
215
| ^^^^^^^^^^^^^^
216
- note : consider refactoring into `Ok(3) | Ok(_)`
217
- --> $DIR/matches.rs:93:18
216
+ help : consider refactoring into `Ok(3) | Ok(_)`
217
+ --> $DIR/matches.rs:93:9
218
218
|
219
219
LL | Ok(3) => println!("ok"),
220
- | ^^^^^^^^^ ^^^^^
220
+ | ^^^^^
221
221
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
222
222
223
223
error: this `match` has identical arm bodies
@@ -231,11 +231,11 @@ note: same as this
231
231
|
232
232
LL | (Ok(x), Some(_)) => println!("ok {}", x),
233
233
| ^^^^^^^^^^^^^^^^^^^^
234
- note : consider refactoring into `(Ok(x), Some(_)) | (Ok(_), Some(x))`
235
- --> $DIR/matches.rs:116:29
234
+ help : consider refactoring into `(Ok(x), Some(_)) | (Ok(_), Some(x))`
235
+ --> $DIR/matches.rs:116:9
236
236
|
237
237
LL | (Ok(x), Some(_)) => println!("ok {}", x),
238
- | ^^^^ ^^^^^^^^^^^^^^^^
238
+ | ^^^^^^^^^^^^^^^^
239
239
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
240
240
241
241
error: this `match` has identical arm bodies
@@ -249,11 +249,11 @@ note: same as this
249
249
|
250
250
LL | Ok(3) => println!("ok"),
251
251
| ^^^^^^^^^^^^^^
252
- note : consider refactoring into `Ok(3) | Ok(_)`
253
- --> $DIR/matches.rs:131:18
252
+ help : consider refactoring into `Ok(3) | Ok(_)`
253
+ --> $DIR/matches.rs:131:9
254
254
|
255
255
LL | Ok(3) => println!("ok"),
256
- | ^^^^^^^^^ ^^^^^
256
+ | ^^^^^
257
257
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
258
258
259
259
error: you don't need to add `&` to all patterns
0 commit comments