cargo fmt
Rust Build / Rustfmt (pull_request) Successful in 53s
Rust Build / Test Suite (pull_request) Successful in 1m33s
Rust Build / Check (pull_request) Successful in 1m58s
Rust Build / Clippy (pull_request) Successful in 1m23s
Rust Build / build (pull_request) Successful in 2m22s

This commit is contained in:
2026-06-11 14:31:58 -04:00
parent 93a51578c2
commit 0269f6b984
+2 -8
View File
@@ -229,10 +229,7 @@ pub async fn register_service_user(
Err(err) => {
eprintln!("Error: {err:?}");
resp.message = String::from("Registration check failed");
return (
axum::http::StatusCode::INTERNAL_SERVER_ERROR,
Json(resp)
);
return (axum::http::StatusCode::INTERNAL_SERVER_ERROR, Json(resp));
}
};
@@ -290,10 +287,7 @@ pub async fn register_service_user(
}
} else {
resp.message = String::from("Registration is not enabled");
(
axum::http::StatusCode::NOT_ACCEPTABLE,
Json(resp),
)
(axum::http::StatusCode::NOT_ACCEPTABLE, Json(resp))
}
}
}