Enable clippy::map_flatten (#8733)
This PR enables the [`clippy::map_flatten`](https://rust-lang.github.io/rust-clippy/master/index.html#/map_flatten) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
@@ -4083,8 +4083,7 @@ mod tests {
|
||||
.position_map
|
||||
.line_layouts
|
||||
.iter()
|
||||
.map(|line_with_invisibles| &line_with_invisibles.invisibles)
|
||||
.flatten()
|
||||
.flat_map(|line_with_invisibles| &line_with_invisibles.invisibles)
|
||||
.cloned()
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user