fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this loop could be written as a `while let` loop 2 --> $DIR/while_let_loop.rs:6:5 3 | 4LL | / loop { 5LL | | 6LL | | 7LL | | if let Some(_x) = y { 8... | 9LL | | } 10LL | | } 11 | |_____^ help: try: `while let Some(_x) = y { .. }` 12 | 13 = note: `-D clippy::while-let-loop` implied by `-D warnings` 14 = help: to override `-D warnings` add `#[allow(clippy::while_let_loop)]` 15 16error: this loop could be written as a `while let` loop 17 --> $DIR/while_let_loop.rs:25:5 18 | 19LL | / loop { 20LL | | 21LL | | match y { 22LL | | Some(_x) => true, 23LL | | None => break, 24LL | | }; 25LL | | } 26 | |_____^ help: try: `while let Some(_x) = y { .. }` 27 28error: this loop could be written as a `while let` loop 29 --> $DIR/while_let_loop.rs:33:5 30 | 31LL | / loop { 32LL | | 33LL | | let x = match y { 34LL | | Some(x) => x, 35... | 36LL | | let _str = "foo"; 37LL | | } 38 | |_____^ help: try: `while let Some(x) = y { .. }` 39 40error: this loop could be written as a `while let` loop 41 --> $DIR/while_let_loop.rs:43:5 42 | 43LL | / loop { 44LL | | 45LL | | let x = match y { 46LL | | Some(x) => x, 47... | 48LL | | } 49LL | | } 50 | |_____^ help: try: `while let Some(x) = y { .. }` 51 52error: this loop could be written as a `while let` loop 53 --> $DIR/while_let_loop.rs:74:5 54 | 55LL | / loop { 56LL | | 57LL | | let (e, l) = match "".split_whitespace().next() { 58LL | | Some(word) => (word.is_empty(), word.len()), 59... | 60LL | | let _ = (e, l); 61LL | | } 62 | |_____^ help: try: `while let Some(word) = "".split_whitespace().next() { .. }` 63 64error: aborting due to 5 previous errors 65