1 error: this match could be written as a `let` statement
2 --> $DIR/match_single_binding2.rs:18:36
4 LL | Some((iter, _item)) => match iter.size_hint() {
5 | ____________________________________^
6 LL | | (min, max) => (min.saturating_add(1), max.and_then(|max| max.checked_add(1))),
10 = note: `-D clippy::match-single-binding` implied by `-D warnings`
11 help: consider using a `let` statement
13 LL ~ Some((iter, _item)) => {
14 LL + let (min, max) = iter.size_hint();
15 LL + (min.saturating_add(1), max.and_then(|max| max.checked_add(1)))
19 error: this match could be written as a `let` statement
20 --> $DIR/match_single_binding2.rs:31:13
22 LL | / match get_tup() {
23 LL | | (a, b) => println!("a {:?} and b {:?}", a, b),
27 help: consider using a `let` statement
29 LL ~ let (a, b) = get_tup();
30 LL + println!("a {:?} and b {:?}", a, b);
33 error: this match could be replaced by its scrutinee and body
34 --> $DIR/match_single_binding2.rs:42:5
36 LL | / match side_effects() {
37 LL | | _ => println!("Side effects"),
41 help: consider using the scrutinee and body instead
44 LL + println!("Side effects");
47 error: this match could be replaced by its scrutinee and body
48 --> $DIR/match_single_binding2.rs:49:5
50 LL | / match match x {
54 LL | | _ => println!("Single branch"),
58 help: consider using the scrutinee and body instead
64 LL + println!("Single branch");
67 error: aborting due to 4 previous errors