These are chat archives for rust-lang/rust
returnshouldn't prolong borrow that far.
unwrap_or_elsedoes no good - closure needs to consume reference, but it cannot
@target-san And alternative is to eliminate the stream borrow in the match and return s.
So Some(_) => return s;
impl<I: Iterator<Item=u8>> Iterator for Chunker<I>