Bump serde-cs to simplify our usage of the star_or function

This commit is contained in:
Kerollmops 2022-06-06 10:17:33 +02:00
parent 64b5b2e1f8
commit 277a0a7967
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
5 changed files with 13 additions and 32 deletions

View file

@ -81,9 +81,9 @@ async fn get_tasks(
// We first transform a potential indexUid=* into a "not specified indexUid filter"
// for every one of the filters: type, status, and indexUid.
let type_: Option<Vec<_>> = type_.map(CS::into_inner).and_then(fold_star_or);
let status: Option<Vec<_>> = status.map(CS::into_inner).and_then(fold_star_or);
let index_uid: Option<Vec<_>> = index_uid.map(CS::into_inner).and_then(fold_star_or);
let type_: Option<Vec<_>> = type_.and_then(fold_star_or);
let status: Option<Vec<_>> = status.and_then(fold_star_or);
let index_uid: Option<Vec<_>> = index_uid.and_then(fold_star_or);
// Then we filter on potential indexes and make sure that the search filter
// restrictions are also applied.