Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`MapWhile` doesn't need to remember whether it's done. As per the contract of the `Stream` trait: > Once a stream has finished (returned Ready(None) from poll_next), calling its poll_next method again may panic, block forever, or cause other kinds of problems; the Stream trait places no requirements on the effects of such a call. This allows us to save the space that may be needed by the boolean, but also lets us simplify the implementation. People can use `fuse` if they so need.
- Loading branch information