diff --git a/src/callers/register.rs b/src/callers/register.rs index a1e7158..e602e49 100644 --- a/src/callers/register.rs +++ b/src/callers/register.rs @@ -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)) } } }