fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: use of `flat_map` with an identity function 2 --> $DIR/flat_map_identity.rs:8:22 3 | 4LL | let _ = iterator.flat_map(|x| x); 5 | ^^^^^^^^^^^^^^^ help: try: `flatten()` 6 | 7 = note: `-D clippy::flat-map-identity` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::flat_map_identity)]` 9 10error: use of `flat_map` with an identity function 11 --> $DIR/flat_map_identity.rs:11:22 12 | 13LL | let _ = iterator.flat_map(convert::identity); 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()` 15 16error: use of `flat_map` with an identity function 17 --> $DIR/flat_map_identity.rs:14:22 18 | 19LL | let _ = iterator.flat_map(|x| return x); 20 | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()` 21 22error: aborting due to 3 previous errors 23