fmt: cleanup & cargo fmt
This commit is contained in:
@ -67,14 +67,14 @@ impl IntoResponse for ApiError {
|
||||
StatusCode::UNAUTHORIZED,
|
||||
Json(RegistrationResponse::user_interactive_authorization_info()),
|
||||
).into_response(),
|
||||
RegistrationError::InvalidUserId => (StatusCode::OK, Json(
|
||||
ErrorResponse::new(
|
||||
RegistrationError::InvalidUserId | RegistrationError::MissingUserId => (
|
||||
StatusCode::BAD_REQUEST,
|
||||
Json(ErrorResponse::new(
|
||||
ErrorCode::InvalidUsername,
|
||||
®istration_error.to_string(),
|
||||
None,
|
||||
)
|
||||
)).into_response(),
|
||||
RegistrationError::MissingUserId => (StatusCode::OK, String::new()).into_response(),
|
||||
RegistrationError::UserIdTaken => (
|
||||
StatusCode::BAD_REQUEST,
|
||||
Json(ErrorResponse::new(
|
||||
|
@ -1,3 +1,3 @@
|
||||
pub mod auth;
|
||||
pub mod versions;
|
||||
pub mod errors;
|
||||
pub mod versions;
|
||||
|
Reference in New Issue
Block a user