blob: 496fd972a498f17b4f7fc3377adf4d3c962203d5 [file] [log] [blame]
error: use of `flat_map` with an identity function
--> tests/ui/flat_map_identity.rs:8:22
|
LL | let _ = iterator.flat_map(|x| x);
| ^^^^^^^^^^^^^^^ help: try: `flatten()`
|
= note: `-D clippy::flat-map-identity` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::flat_map_identity)]`
error: use of `flat_map` with an identity function
--> tests/ui/flat_map_identity.rs:11:22
|
LL | let _ = iterator.flat_map(convert::identity);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
error: use of `flat_map` with an identity function
--> tests/ui/flat_map_identity.rs:14:22
|
LL | let _ = iterator.flat_map(|x| return x);
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
error: aborting due to 3 previous errors