2021-07-01 18:17:38 +02:00
|
|
|
error: use of `flat_map` with an identity function
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/flat_map_identity.rs:8: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`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::flat_map_identity)]`
|
2019-06-24 11:21:29 +02:00
|
|
|
|
2021-07-01 18:17:38 +02:00
|
|
|
error: use of `flat_map` with an identity function
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/flat_map_identity.rs:11: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
|
|
|
|
2021-07-01 18:17:38 +02:00
|
|
|
error: use of `flat_map` with an identity function
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/flat_map_identity.rs:14:22
|
2021-07-01 18:17:38 +02:00
|
|
|
|
|
|
|
|
LL | let _ = iterator.flat_map(|x| return x);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2019-06-24 11:21:29 +02:00
|
|
|
|