Remove unnecessary From<Error> for io::Error in no_std mode

This commit is contained in:
David Tolnay 2020-01-21 23:52:05 -08:00
parent 85008aa29c
commit e83673adea
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 1 additions and 2 deletions

View File

@ -129,6 +129,7 @@ pub enum Category {
Eof, Eof,
} }
#[cfg(feature = "std")]
#[cfg_attr(feature = "cargo-clippy", allow(fallible_impl_from))] #[cfg_attr(feature = "cargo-clippy", allow(fallible_impl_from))]
impl From<Error> for io::Error { impl From<Error> for io::Error {
/// Convert a `serde_json::Error` into an `io::Error`. /// Convert a `serde_json::Error` into an `io::Error`.

View File

@ -4,10 +4,8 @@
use lib::*; use lib::*;
pub enum ErrorKind { pub enum ErrorKind {
InvalidData,
WriteZero, WriteZero,
Other, Other,
UnexpectedEof,
} }
pub struct Error { pub struct Error {