Skip to content

Commit 3010ae5

Browse files
hellow554phimuemue
authored andcommitted
fix clippy::unwrap_or_else_default
1 parent 28e0b95 commit 3010ae5

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_default()
2222
}

0 commit comments

Comments
 (0)