message: Implement `std::convert::Infalible` for the error types
diff: //! Errors returned from I/O `Write` and `Read` operations
  use num_derive::FromPrimitive;
  +use std::convert::Infallible;
  use thiserror::Error;
  /// Errors from encoding data
  @@ -88,6 +89,12 @@ impl From<serde_json::Error> for EncodingError {
  }
  }
  +impl From<Infallible> for EncodingError {
  + fn from(_: Infallible) -> Self {
  + unreachable!()
  + }
  +}
  +
  /// Errors from decoding data
  #[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
  pub enum DecodingError {
  @@ -178,3 +185,9 @@ impl From<serde_json::Error> for DecodingError {
  e.into()
  }
  }
  +
  +impl From<Infallible> for DecodingError {
  + fn from(_: Infallible) -> Self {
  + unreachable!()
  + }
  +}
  