This commit is contained in:
Valentin Tolmer 2021-05-09 13:28:53 +02:00
parent 25027f7614
commit c33948ccc2

View File

@ -25,10 +25,10 @@ async fn user_list_handler<Backend>(
where
Backend: BackendHandler + 'static,
{
let req : ListUsersRequest = info.clone();
let req: ListUsersRequest = info.clone();
match data.backend_handler.list_users(req).await {
Ok(res) => ApiResult::Left(web::Json(res)),
Err(_) => ApiResult::Right(HttpResponse::InternalServerError().finish())
Err(_) => ApiResult::Right(HttpResponse::InternalServerError().finish()),
}
}