The `DecodeError` (badly named) consensus decodes an object from an iterator that implements `Read`. The `Read` impl never returns a real IO error, we use the `io::Error` to temporarily wrap the error returned by the inner iterator and unwrap it in `IterReader::decode`. As such there is no reason for the `DecodeError` to hold an `encode::Error`, it can hold an `encode::ParseError`. The value of this change is easily seen in the removal of calls to `unreachable`. |
||
---|---|---|
.. | ||
contrib | ||
embedded | ||
examples | ||
src | ||
tests | ||
CHANGELOG.md | ||
Cargo.toml |