@@ -178,36 +178,5 @@ LL | | _ => println!("Single branch"),
178178LL | | }
179179 | |_____^ help: consider using the match body instead: `println!("Single branch");`
180180
181- error: this match could be written as a `let` statement
182- --> $DIR/match_single_binding.rs:146:36
183- |
184- LL | Some((iter, _item)) => match iter.size_hint() {
185- | ____________________________________^
186- LL | | (min, max) => (min.saturating_add(1), max.and_then(|max| max.checked_add(1))),
187- LL | | },
188- | |_____________^
189- |
190- help: consider using `let` statement
191- |
192- LL | Some((iter, _item)) => {
193- LL | let (min, max) = iter.size_hint();
194- LL | (min.saturating_add(1), max.and_then(|max| max.checked_add(1)))
195- LL | },
196- |
197-
198- error: this match could be written as a `let` statement
199- --> $DIR/match_single_binding.rs:158:13
200- |
201- LL | / match get_tup() {
202- LL | | (a, b) => println!("a {:?} and b {:?}", a, b),
203- LL | | }
204- | |_____________^
205- |
206- help: consider using `let` statement
207- |
208- LL | let (a, b) = get_tup();
209- LL | println!("a {:?} and b {:?}", a, b);
210- |
211-
212- error: aborting due to 14 previous errors
181+ error: aborting due to 12 previous errors
213182
0 commit comments