aboutsummaryrefslogtreecommitdiff
path: root/aero-dav/src/caldecoder.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-05-21 18:09:21 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-05-21 18:09:21 +0200
commit51ec1d7ff9cc678a0e08b1e221af09fc7d8f4296 (patch)
tree63e24978f881707755e2091d6327264324a21736 /aero-dav/src/caldecoder.rs
parentb2c75242eb5788242787428883471da3ec54ea7e (diff)
downloadaerogramme-51ec1d7ff9cc678a0e08b1e221af09fc7d8f4296.tar.gz
aerogramme-51ec1d7ff9cc678a0e08b1e221af09fc7d8f4296.zip
calendar-query filter propertiers
Diffstat (limited to 'aero-dav/src/caldecoder.rs')
-rw-r--r--aero-dav/src/caldecoder.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/aero-dav/src/caldecoder.rs b/aero-dav/src/caldecoder.rs
index 16c9c6c..b4391a4 100644
--- a/aero-dav/src/caldecoder.rs
+++ b/aero-dav/src/caldecoder.rs
@@ -805,7 +805,6 @@ impl QRead<PropFilter> for PropFilter {
impl QRead<PropFilterRules> for PropFilterRules {
async fn qread(xml: &mut Reader<impl IRead>) -> Result<Self, ParsingError> {
- let mut time_range = None;
let mut time_or_text = None;
let mut param_filter = Vec::new();
@@ -817,7 +816,6 @@ impl QRead<PropFilterRules> for PropFilterRules {
return Ok(Self::IsNotDefined);
}
- xml.maybe_read(&mut time_range, &mut dirty).await?;
xml.maybe_read(&mut time_or_text, &mut dirty).await?;
xml.maybe_push(&mut param_filter, &mut dirty).await?;
@@ -829,10 +827,9 @@ impl QRead<PropFilterRules> for PropFilterRules {
}
}
- match (&time_range, &time_or_text, &param_filter[..]) {
- (None, None, []) => Err(ParsingError::Recoverable),
+ match (&time_or_text, &param_filter[..]) {
+ (None, []) => Err(ParsingError::Recoverable),
_ => Ok(PropFilterRules::Match(PropFilterMatch {
- time_range,
time_or_text,
param_filter,
})),