From 071aa6803842ea71efb1852fa6bb39b3755a00ee Mon Sep 17 00:00:00 2001 From: Marcel Hellwig Date: Thu, 7 Jul 2022 11:10:34 +0200 Subject: [PATCH] fix some more clippy lints --- src/flatten_ok.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/flatten_ok.rs b/src/flatten_ok.rs index 21ae1f722..f431c1325 100644 --- a/src/flatten_ok.rs +++ b/src/flatten_ok.rs @@ -76,8 +76,7 @@ where let inner_hint = |inner: &Option| { inner .as_ref() - .map(Iterator::size_hint) - .unwrap_or((0, Some(0))) + .map_or((0, Some(0)), Iterator::size_hint) }; let inner_front = inner_hint(&self.inner_front); let inner_back = inner_hint(&self.inner_back);