This commit is contained in:
Lennart
2024-09-29 15:22:45 +02:00
parent b35e50bf76
commit 2670abfef0
5 changed files with 10 additions and 7 deletions

View File

@@ -79,7 +79,7 @@ pub async fn handle_calendar_multiget<C: CalendarStore + ?Sized>(
// TODO: Implement // TODO: Implement
return Err(Error::NotImplemented); return Err(Error::NotImplemented);
} }
PropfindType::Prop(PropElement { prop: prop_tags }) => prop_tags.into(), PropfindType::Prop(PropElement { prop: prop_tags }) => prop_tags.into_inner(),
}; };
let props: Vec<&str> = props.iter().map(String::as_str).collect(); let props: Vec<&str> = props.iter().map(String::as_str).collect();

View File

@@ -118,7 +118,7 @@ pub async fn handle_calendar_query<C: CalendarStore + ?Sized>(
// TODO: Implement // TODO: Implement
return Err(Error::NotImplemented); return Err(Error::NotImplemented);
} }
PropfindType::Prop(PropElement { prop: prop_tags }) => prop_tags.into(), PropfindType::Prop(PropElement { prop: prop_tags }) => prop_tags.into_inner(),
}; };
let props: Vec<&str> = props.iter().map(String::as_str).collect(); let props: Vec<&str> = props.iter().map(String::as_str).collect();

View File

@@ -58,7 +58,7 @@ pub async fn handle_sync_collection<C: CalendarStore + ?Sized>(
// TODO: Implement // TODO: Implement
return Err(Error::NotImplemented); return Err(Error::NotImplemented);
} }
PropfindType::Prop(PropElement { prop: prop_tags }) => prop_tags.into(), PropfindType::Prop(PropElement { prop: prop_tags }) => prop_tags.into_inner(),
}; };
let props: Vec<&str> = props.iter().map(String::as_str).collect(); let props: Vec<&str> = props.iter().map(String::as_str).collect();

View File

@@ -75,7 +75,7 @@ pub async fn route_propfind<A: CheckAuthentication, R: ResourceService>(
// TODO: Implement // TODO: Implement
return Err(Error::InternalError.into()); return Err(Error::InternalError.into());
} }
PropfindType::Prop(PropElement { prop: prop_tags }) => prop_tags.into(), PropfindType::Prop(PropElement { prop: prop_tags }) => prop_tags.into_inner(),
}; };
let props: Vec<&str> = props.iter().map(String::as_str).collect(); let props: Vec<&str> = props.iter().map(String::as_str).collect();

View File

@@ -51,9 +51,12 @@ impl Serialize for TagList {
} }
} }
impl From<TagList> for Vec<String> { impl TagList {
fn from(value: TagList) -> Self { pub fn inner(&self) -> &Vec<String> {
value.0 &self.0
}
pub fn into_inner(self) -> Vec<String> {
self.0
} }
} }