diff options
| author | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-04 08:42:02 +0300 |
|---|---|---|
| committer | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-04 08:51:12 +0300 |
| commit | 924bcf3d25c01ccfd1cdf04bcc0308c5c1fd4ddb (patch) | |
| tree | 2e7ee5676a6e38570771cd7bb889606f9ddde401 /src/error.rs | |
| parent | 4a2cf5b8cbc95bd973e5e2fc8a331ca98f116df0 (diff) | |
| download | genenetwork4-924bcf3d25c01ccfd1cdf04bcc0308c5c1fd4ddb.tar.gz | |
Format all Rust sources with cargo fmt (no behavior change)
Line-wrapping and canonical import ordering only (verified with git diff -w). Establishes rustfmt's output as the canonical style before the search/correlation work lands.
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index bbc5413..49e1574 100644 --- a/src/error.rs +++ b/src/error.rs @@ -9,9 +9,9 @@ //! service has no fixed public domain; RFC 7807 explicitly allows `type` //! to be a relative URI reference. +use axum::Json; use axum::http::StatusCode; use axum::response::{IntoResponse, Response}; -use axum::Json; use serde::Serialize; #[derive(Serialize, utoipa::ToSchema)] @@ -28,7 +28,13 @@ pub struct ApiError { } impl ApiError { - pub fn new(status: StatusCode, code: &str, title: &str, detail: String, operation_id: &str) -> Self { + pub fn new( + status: StatusCode, + code: &str, + title: &str, + detail: String, + operation_id: &str, + ) -> Self { ApiError { r#type: format!("/errors/{code}"), title: title.to_string(), |
