P3KI/bendy

Failure in display message of `decoding::Error::UnexpectedToken`

0ndorio opened this issue · 1 comments

The current display message is defined as

#[fail(display = "discovered {} but expected {}", _0, _1)]
but based on the usage in
pub fn unexpected_token(expected: impl Display, discovered: impl Display) -> Error {
Self::from(ErrorKind::UnexpectedToken(
expected.to_string(),
discovered.to_string(),
))
}
it should be the other way around.

Any ETA on the release of this? Or are you accepting PR's?