mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
64368d0279
Implement FusedIterator for DecodeUtf16 when the inner iterator does
I have just implemented an iterator that wraps `DecodeUtf16` and wanted to implement `FusedIterator` for my iterator when I noticed that `DecodeUtf16` currently doesn't implement `FusedIterator` at all.
A quick look at the code of `DecodeUtf16` revealed that `DecodeUtf16::next` only returns `None` when its inner iterator returns `None`:
|
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |