Skip to content

Commit

Permalink
run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hellow554 committed Jan 10, 2024
1 parent 5135932 commit 791bffb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/flatten_ok.rs
Expand Up @@ -73,11 +73,8 @@ where
}

fn size_hint(&self) -> (usize, Option<usize>) {
let inner_hint = |inner: &Option<T::IntoIter>| {
inner
.as_ref()
.map_or((0, Some(0)), Iterator::size_hint)
};
let inner_hint =
|inner: &Option<T::IntoIter>| inner.as_ref().map_or((0, Some(0)), Iterator::size_hint);
let inner_front = inner_hint(&self.inner_front);
let inner_back = inner_hint(&self.inner_back);
// The outer iterator `Ok` case could be (0, None) as we don't know its size_hint yet.
Expand Down

0 comments on commit 791bffb

Please sign in to comment.