fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: manual implementation of `Iterator::find` 2 --> $DIR/manual_find.rs:5:5 3 | 4LL | / for s in strings { 5LL | | 6LL | | 7LL | | if s == String::new() { 8... | 9LL | | } 10LL | | None 11 | |________^ help: replace with an iterator: `strings.into_iter().find(|s| s == String::new())` 12 | 13 = note: you may need to dereference some variables 14 = note: `-D clippy::manual-find` implied by `-D warnings` 15 = help: to override `-D warnings` add `#[allow(clippy::manual_find)]` 16 17error: manual implementation of `Iterator::find` 18 --> $DIR/manual_find.rs:16:5 19 | 20LL | / for (s, _) in arr { 21LL | | 22LL | | 23LL | | if s == String::new() { 24... | 25LL | | } 26LL | | None 27 | |________^ help: replace with an iterator: `arr.into_iter().map(|(s, _)| s).find(|s| s == String::new())` 28 | 29 = note: you may need to dereference some variables 30 31error: aborting due to 2 previous errors 32