Lint .flat_map(|x| x) into .flatten() #4224
Labels
A-lint
Area: New lints
good first issue
These issues are a good way to get started with Clippy
L-complexity
Lint: Belongs in the complexity lint group
L-suggestion
Lint: Improving, adding or fixing lint suggestions
Uh oh!
There was an error while loading. Please reload this page.
Clippy should suggest using
.flatten()
instead of.flat_map(|x| x)
.The text was updated successfully, but these errors were encountered: