mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-15 16:22:21 +00:00
resourcetype: Use tuple struct
This commit is contained in:
@@ -39,12 +39,10 @@ impl<PR: Resource> Resource for RootResource<PR> {
|
||||
type PrincipalResource = PR;
|
||||
|
||||
fn get_resourcetype(&self) -> Resourcetype {
|
||||
Resourcetype {
|
||||
inner: &[ResourcetypeInner {
|
||||
ns: crate::namespace::NS_DAV,
|
||||
name: "collection",
|
||||
}],
|
||||
}
|
||||
Resourcetype(&[ResourcetypeInner {
|
||||
ns: crate::namespace::NS_DAV,
|
||||
name: "collection",
|
||||
}])
|
||||
}
|
||||
|
||||
fn get_prop(
|
||||
|
||||
Reference in New Issue
Block a user