Fix (hopefully) queries that include processing tasks

This commit is contained in:
Loïc Lecrenier 2022-10-24 13:32:46 +02:00 committed by Clément Renault
parent 493a8cff31
commit 4a35eb9849
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
4 changed files with 313 additions and 21 deletions

View file

@ -236,7 +236,7 @@ pub(crate) fn keep_tasks_within_datetimes(
}
// TODO: remove when Bound::map ( https://github.com/rust-lang/rust/issues/86026 ) is available on stable
fn map_bound<T, U>(bound: Bound<T>, map: impl FnOnce(T) -> U) -> Bound<U> {
pub(crate) fn map_bound<T, U>(bound: Bound<T>, map: impl FnOnce(T) -> U) -> Bound<U> {
match bound {
Bound::Included(x) => Bound::Included(map(x)),
Bound::Excluded(x) => Bound::Excluded(map(x)),