From 9f84b352b9ccfdf4c26311f4e73b9e03a3a9965d Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Sun, 28 Oct 2018 17:03:25 -0700 Subject: [PATCH] Formatting --- src/errors.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index ba97132..74014bc 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -63,12 +63,14 @@ error_chain! { impl<'r> rocket::response::Responder<'r> for Error { fn respond_to(self, _: &rocket::request::Request) -> rocket::response::Result<'r> { - let mut build = rocket::response::Response::build(); - build.status(match self.0 { - ErrorKind::FileNotFound => rocket::http::Status::NotFound, - _ => rocket::http::Status::InternalServerError, - }).ok() - } + let mut build = rocket::response::Response::build(); + build + .status(match self.0 { + ErrorKind::FileNotFound => rocket::http::Status::NotFound, + _ => rocket::http::Status::InternalServerError, + }) + .ok() + } } impl From for IronError {