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