blob: a5ee79b4982fb753d1d99c77b40491d9b26c0013 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
### What it does
Checks for usage of `flat_map(|x| x)`.
### Why is this bad?
Readability, this can be written more concisely by using `flatten`.
### Example
```
iter.flat_map(|x| x);
```
Can be written as
```
iter.flatten();
```
|