Skip to content

Commit 071aa68

Browse files
committed
fix some more clippy lints
1 parent 82d4a4c commit 071aa68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/flatten_ok.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ where
7676
let inner_hint = |inner: &Option<T::IntoIter>| {
7777
inner
7878
.as_ref()
79-
.map(Iterator::size_hint)
80-
.unwrap_or((0, Some(0)))
79+
.map_or((0, Some(0)), Iterator::size_hint)
8180
};
8281
let inner_front = inner_hint(&self.inner_front);
8382
let inner_back = inner_hint(&self.inner_back);

0 commit comments

Comments
 (0)