diff options
author | Cara Salter <cara@devcara.com> | 2022-07-09 22:44:35 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-07-09 22:44:35 -0400 |
commit | 90823a79ef80f6a589a414fb8a3006c8ff17a95d (patch) | |
tree | d7124a7ab9e43f9e79a32375da3cea2a9c36a7e8 /src/errors.rs | |
parent | c9ff6a9d85fb50e0760acad921709582c2e402cb (diff) | |
download | homeworld-90823a79ef80f6a589a414fb8a3006c8ff17a95d.tar.gz homeworld-90823a79ef80f6a589a414fb8a3006c8ff17a95d.zip |
fmt
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() } } |