mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 21:42:34 +00:00
typing
This commit is contained in:
@@ -79,7 +79,7 @@ pub async fn handle_calendar_multiget<C: CalendarStore + ?Sized>(
|
||||
// TODO: Implement
|
||||
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();
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ pub async fn handle_calendar_query<C: CalendarStore + ?Sized>(
|
||||
// TODO: Implement
|
||||
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();
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ pub async fn handle_sync_collection<C: CalendarStore + ?Sized>(
|
||||
// TODO: Implement
|
||||
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();
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ pub async fn route_propfind<A: CheckAuthentication, R: ResourceService>(
|
||||
// TODO: Implement
|
||||
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();
|
||||
|
||||
|
||||
@@ -51,9 +51,12 @@ impl Serialize for TagList {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<TagList> for Vec<String> {
|
||||
fn from(value: TagList) -> Self {
|
||||
value.0
|
||||
impl TagList {
|
||||
pub fn inner(&self) -> &Vec<String> {
|
||||
&self.0
|
||||
}
|
||||
pub fn into_inner(self) -> Vec<String> {
|
||||
self.0
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user