mirror of https://github.com/rwf2/Rocket.git
Expose SerdeError.
This commit is contained in:
parent
bea9727f44
commit
6fd0503cea
|
@ -11,7 +11,8 @@ use rocket::response::{self, Responder, content};
|
|||
use rocket::http::Status;
|
||||
|
||||
use self::serde::{Serialize, Deserialize};
|
||||
use self::serde_json::error::Error as SerdeError;
|
||||
|
||||
pub use self::serde_json::error::Error as SerdeError;
|
||||
|
||||
/// The JSON type, which implements `FromData` and `Responder`. This type allows
|
||||
/// you to trivially consume and respond with JSON in your Rocket application.
|
||||
|
|
|
@ -48,5 +48,8 @@ mod templates;
|
|||
#[cfg(feature = "json")]
|
||||
pub use json::JSON;
|
||||
|
||||
#[cfg(feature = "json")]
|
||||
pub use json::SerdeError;
|
||||
|
||||
#[cfg(feature = "templates")]
|
||||
pub use templates::Template;
|
||||
|
|
Loading…
Reference in New Issue