cargo fmt
This commit is contained in:
@@ -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),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user