2019-08-12 21:42:57 +02:00
|
|
|
error: called `flat_map(|x| x)` on an `Iterator`
|
2019-08-13 21:50:52 +02:00
|
|
|
--> $DIR/unnecessary_flat_map.rs:10:22
|
2019-06-24 11:21:29 +02:00
|
|
|
|
|
2019-08-13 21:50:52 +02:00
|
|
|
LL | let _ = iterator.flat_map(|x| x);
|
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `flatten()`
|
2019-06-24 11:21:29 +02:00
|
|
|
|
|
2019-08-11 20:34:25 +02:00
|
|
|
= note: `-D clippy::flat-map-identity` implied by `-D warnings`
|
2019-06-24 11:21:29 +02:00
|
|
|
|
2019-08-12 21:42:57 +02:00
|
|
|
error: called `flat_map(std::convert::identity)` on an `Iterator`
|
2019-08-13 21:50:52 +02:00
|
|
|
--> $DIR/unnecessary_flat_map.rs:13:22
|
2019-08-11 19:51:43 +02:00
|
|
|
|
|
2019-08-13 21:50:52 +02:00
|
|
|
LL | let _ = iterator.flat_map(convert::identity);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
|
2019-08-11 19:51:43 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2019-06-24 11:21:29 +02:00
|
|
|
|