mirror of
https://github.com/serde-rs/json.git
synced 2025-10-01 15:02:37 +00:00
Remove unnecessary From<Error> for io::Error in no_std mode
This commit is contained in:
parent
85008aa29c
commit
e83673adea
@ -129,6 +129,7 @@ pub enum Category {
|
||||
Eof,
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(fallible_impl_from))]
|
||||
impl From<Error> for io::Error {
|
||||
/// Convert a `serde_json::Error` into an `io::Error`.
|
||||
|
@ -4,10 +4,8 @@
|
||||
use lib::*;
|
||||
|
||||
pub enum ErrorKind {
|
||||
InvalidData,
|
||||
WriteZero,
|
||||
Other,
|
||||
UnexpectedEof,
|
||||
}
|
||||
|
||||
pub struct Error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user