Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rustdoc and clippy to github workflow #618

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
run rustfmt
hellow554 committed Jan 10, 2024
commit 09effd55ed1fa47ae280fb20d3743d23b29c4ef4
7 changes: 2 additions & 5 deletions src/flatten_ok.rs
Original file line number Diff line number Diff line change
@@ -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.