2021-06-07 16:10:42 -05:00
|
|
|
error: use of `flat_map` with an identity function
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/flat_map_identity.rs:8:22
|
2019-06-24 04:21:29 -05:00
|
|
|
|
|
2019-08-13 14:50:52 -05:00
|
|
|
LL | let _ = iterator.flat_map(|x| x);
|
|
|
|
| ^^^^^^^^^^^^^^^ 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
|
|
|
|
2021-06-07 16:10:42 -05:00
|
|
|
error: use of `flat_map` with an identity function
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/flat_map_identity.rs:11:22
|
2019-08-11 12:51:43 -05:00
|
|
|
|
|
2019-08-13 14:50:52 -05:00
|
|
|
LL | let _ = iterator.flat_map(convert::identity);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
|
2019-08-11 12:51:43 -05:00
|
|
|
|
2021-06-07 16:10:42 -05:00
|
|
|
error: use of `flat_map` with an identity function
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/flat_map_identity.rs:14:22
|
2021-06-07 16:10:42 -05:00
|
|
|
|
|
|
|
|
LL | let _ = iterator.flat_map(|x| return x);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2019-06-24 04:21:29 -05:00
|
|
|
|