diff --git a/src/iter/extend.rs b/src/iter/extend.rs index 10f0e9a95..114375f72 100644 --- a/src/iter/extend.rs +++ b/src/iter/extend.rs @@ -287,7 +287,7 @@ impl<'a> ParallelExtend<&'a char> for String { fn string_reserve>(string: &mut String, list: &LinkedList>) { let len = list .iter() - .flat_map(|vec| vec) + .flatten() .map(T::as_ref) .map(str::len) .sum();