Skip to content

Commit

Permalink
Fix clippy::flat_map_identity
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Dec 19, 2019
1 parent 4e40256 commit a1db0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iter/extend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl<'a> ParallelExtend<&'a char> for String {
fn string_reserve<T: AsRef<str>>(string: &mut String, list: &LinkedList<Vec<T>>) {
let len = list
.iter()
.flat_map(|vec| vec)
.flatten()
.map(T::as_ref)
.map(str::len)
.sum();
Expand Down

0 comments on commit a1db0fe

Please sign in to comment.