mirror of
https://github.com/lennart-k/rustical.git
synced 2026-01-30 20:08:19 +00:00
typing
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user