Open Philippe-Cholet opened 4 months ago
Attention: Patch coverage is 95.23810%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 94.72%. Comparing base (
6814180
) to head (8181f3f
). Report is 111 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
src/adaptors/mod.rs | 91.66% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I added some marginal changes:
ControlFlow
?!@jswrenn
I remember your https://github.com/rust-itertools/itertools/pull/780#discussion_r1352664093 where you prefered ControlFlow
over Result
, I replaced some, left some aside for now.
Can you elaborate on the reason?
I remember your #780 (comment) where you prefered
ControlFlow
overResult
, I replaced some, left some aside for now. Can you elaborate on the reason?
Result::Err
denotes "something went wrong"; ControlFlow::Break
doesn't. Favor ControlFlow
when we're trying to encode conditional iteration without judgement about error-ness, and favor Result
when you're specifically dealing with an early return due to error.
@Philippe-Cholet is this good to merge?
I noted 5 months ago that edition 2021 requires rustc 1.56+ so it's now possible. Is there any reason to not update?