Skip to content

Commit 81fc93e

Browse files
committed
Avoid redundant closure
1 parent f983f67 commit 81fc93e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/concat_impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ pub fn concat<I>(iterable: I) -> I::Item
1818
where I: IntoIterator,
1919
I::Item: Extend<<<I as IntoIterator>::Item as IntoIterator>::Item> + IntoIterator + Default
2020
{
21-
iterable.into_iter().fold1(|mut a, b| { a.extend(b); a }).unwrap_or_else(|| <_>::default())
21+
iterable.into_iter().fold1(|mut a, b| { a.extend(b); a }).unwrap_or_else(<_>::default)
2222
}

0 commit comments

Comments
 (0)