diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index 4219d32..6390c43 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,9 +1,14 @@ //! When serializing or deserializing JSON goes wrong. use crate::io; -use crate::lib::str::FromStr; -use crate::lib::*; +use alloc::boxed::Box; +use alloc::string::{String, ToString}; +use core::fmt::{self, Debug, Display}; +use core::result; +use core::str::FromStr; use serde::{de, ser}; +#[cfg(feature = "std")] +use std::error; /// This type represents all possible errors that can occur when serializing or /// deserializing JSON data. |