@@ -149,49 +149,49 @@ LL | let x = if let Some(_) = opt { true } else { false };
149
149
| -------^^^^^^^------ help: try this: `if opt.is_some()`
150
150
151
151
error: redundant pattern matching, consider using `is_some()`
152
- --> $DIR/redundant_pattern_matching.rs:102 :20
152
+ --> $DIR/redundant_pattern_matching.rs:103 :20
153
153
|
154
154
LL | let _ = if let Some(_) = gen_opt() {
155
155
| -------^^^^^^^------------ help: try this: `if gen_opt().is_some()`
156
156
157
157
error: redundant pattern matching, consider using `is_none()`
158
- --> $DIR/redundant_pattern_matching.rs:104 :19
158
+ --> $DIR/redundant_pattern_matching.rs:105 :19
159
159
|
160
160
LL | } else if let None = gen_opt() {
161
161
| -------^^^^------------ help: try this: `if gen_opt().is_none()`
162
162
163
163
error: redundant pattern matching, consider using `is_ok()`
164
- --> $DIR/redundant_pattern_matching.rs:106 :19
164
+ --> $DIR/redundant_pattern_matching.rs:107 :19
165
165
|
166
166
LL | } else if let Ok(_) = gen_res() {
167
167
| -------^^^^^------------ help: try this: `if gen_res().is_ok()`
168
168
169
169
error: redundant pattern matching, consider using `is_err()`
170
- --> $DIR/redundant_pattern_matching.rs:108 :19
170
+ --> $DIR/redundant_pattern_matching.rs:109 :19
171
171
|
172
172
LL | } else if let Err(_) = gen_res() {
173
173
| -------^^^^^^------------ help: try this: `if gen_res().is_err()`
174
174
175
175
error: redundant pattern matching, consider using `is_some()`
176
- --> $DIR/redundant_pattern_matching.rs:141 :19
176
+ --> $DIR/redundant_pattern_matching.rs:142 :19
177
177
|
178
178
LL | while let Some(_) = r#try!(result_opt()) {}
179
179
| ----------^^^^^^^----------------------- help: try this: `while r#try!(result_opt()).is_some()`
180
180
181
181
error: redundant pattern matching, consider using `is_some()`
182
- --> $DIR/redundant_pattern_matching.rs:142 :16
182
+ --> $DIR/redundant_pattern_matching.rs:143 :16
183
183
|
184
184
LL | if let Some(_) = r#try!(result_opt()) {}
185
185
| -------^^^^^^^----------------------- help: try this: `if r#try!(result_opt()).is_some()`
186
186
187
187
error: redundant pattern matching, consider using `is_some()`
188
- --> $DIR/redundant_pattern_matching.rs:148 :12
188
+ --> $DIR/redundant_pattern_matching.rs:149 :12
189
189
|
190
190
LL | if let Some(_) = m!() {}
191
191
| -------^^^^^^^------- help: try this: `if m!().is_some()`
192
192
193
193
error: redundant pattern matching, consider using `is_some()`
194
- --> $DIR/redundant_pattern_matching.rs:149 :15
194
+ --> $DIR/redundant_pattern_matching.rs:150 :15
195
195
|
196
196
LL | while let Some(_) = m!() {}
197
197
| ----------^^^^^^^------- help: try this: `while m!().is_some()`
0 commit comments