Expose SerdeError.

This commit is contained in:
Sergio Benitez 2017-01-12 23:07:01 -08:00
parent bea9727f44
commit 6fd0503cea
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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;