mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
style
This commit is contained in:
parent
25027f7614
commit
c33948ccc2
@ -25,10 +25,10 @@ async fn user_list_handler<Backend>(
|
|||||||
where
|
where
|
||||||
Backend: BackendHandler + 'static,
|
Backend: BackendHandler + 'static,
|
||||||
{
|
{
|
||||||
let req : ListUsersRequest = info.clone();
|
let req: ListUsersRequest = info.clone();
|
||||||
match data.backend_handler.list_users(req).await {
|
match data.backend_handler.list_users(req).await {
|
||||||
Ok(res) => ApiResult::Left(web::Json(res)),
|
Ok(res) => ApiResult::Left(web::Json(res)),
|
||||||
Err(_) => ApiResult::Right(HttpResponse::InternalServerError().finish())
|
Err(_) => ApiResult::Right(HttpResponse::InternalServerError().finish()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user