diff --git a/src/error.rs b/src/error.rs index 185211e7..9f7c0c14 100644 --- a/src/error.rs +++ b/src/error.rs @@ -130,8 +130,6 @@ impl Error { ErrorCode::Message => Category::Data, #[cfg(feature = "std")] ErrorCode::Io(_) => Category::Io, - #[cfg(not(feature = "std"))] - ErrorCode::Io => Category::Io, ErrorCode::ScratchTooSmall => Category::Io, ErrorCode::EofWhileParsingValue | ErrorCode::EofWhileParsingArray @@ -267,8 +265,6 @@ pub(crate) enum ErrorCode { Message, #[cfg(feature = "std")] Io(io::Error), - #[cfg(not(feature = "std"))] - Io, ScratchTooSmall, EofWhileParsingValue, EofWhileParsingArray, @@ -292,8 +288,6 @@ impl fmt::Display for ErrorCode { ErrorCode::Message => f.write_str("Unknown error"), #[cfg(feature = "std")] ErrorCode::Io(ref err) => fmt::Display::fmt(err, f), - #[cfg(not(feature = "std"))] - ErrorCode::Io => f.write_str("Unknown I/O error"), ErrorCode::ScratchTooSmall => f.write_str("Scratch buffer too small"), ErrorCode::EofWhileParsingValue => f.write_str("EOF while parsing a value"), ErrorCode::EofWhileParsingArray => f.write_str("EOF while parsing an array"),