diff options
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/errors.rs b/src/errors.rs index d4b365f..6b3195f 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,4 +1,7 @@ -use axum::{response::{Response, IntoResponse}, body::{boxed, self}}; +use axum::{ + body::{self, boxed}, + response::{IntoResponse, Response}, +}; use hyper::StatusCode; use thiserror::Error; @@ -34,9 +37,6 @@ impl IntoResponse for ServiceError { _ => StatusCode::INTERNAL_SERVER_ERROR, }; - Response::builder() - .status(status) - .body(body) - .unwrap() + Response::builder().status(status).body(body).unwrap() } } |