mirror of
https://github.com/serde-rs/json.git
synced 2025-10-05 00:35:54 +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,
|
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`.
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user