cargo fmt
Rust Build / Rustfmt (pull_request) Successful in 42s
Rust Build / Check (pull_request) Successful in 1m18s
Rust Build / Clippy (pull_request) Successful in 1m32s

This commit is contained in:
2026-07-01 22:13:46 -04:00
parent 2ce0d2f38b
commit 8f0d3f4e6d
+5 -2
View File
@@ -836,7 +836,7 @@ pub async fn get_user_profile(
lastname: user.lastname,
last_login: user.last_login,
created: user.created,
username: user.username
username: user.username,
};
response.message = String::from(super::messages::SUCCESSFUL_MESSAGE);
response.data.push(user_profile);
@@ -846,7 +846,10 @@ pub async fn get_user_profile(
Err(err) => {
eprintln!("Error: {err:?}");
response.message = String::from("Bad request");
(axum::http::StatusCode::INTERNAL_SERVER_ERROR, axum::Json(response))
(
axum::http::StatusCode::INTERNAL_SERVER_ERROR,
axum::Json(response),
)
}
}
}