summaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-07-09 22:44:35 -0400
committerCara Salter <cara@devcara.com>2022-07-09 22:44:35 -0400
commit90823a79ef80f6a589a414fb8a3006c8ff17a95d (patch)
treed7124a7ab9e43f9e79a32375da3cea2a9c36a7e8 /src/errors.rs
parentc9ff6a9d85fb50e0760acad921709582c2e402cb (diff)
downloadhomeworld-90823a79ef80f6a589a414fb8a3006c8ff17a95d.tar.gz
homeworld-90823a79ef80f6a589a414fb8a3006c8ff17a95d.zip
fmt
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs10
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()
}
}