map_flatten lint docs should include Option
cases
#8345
Labels
A-documentation
Area: Adding or improving documentation
good-first-issue
These issues are a good way to get started with Clippy
Description
Clippy suggests replacing
_.map(_).flatten(_)
with.and_then(_)
for anOption
. For example, this code:generates this clippy lint
But the webpage linked in this lint suggests using
_.flat_map(_)
forOption
types, yet.flat_map(_)
does not exist onOption
, instead the equivalent is.and_then(_)
. This isn't a huge deal, but it can be confusing when the clippy suggests one thing, and the link with further information suggests something else.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: