mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
caldav: add support for calendar subscriptions
This commit is contained in:
@@ -56,7 +56,7 @@ impl Resource for AddressObjectResource {
|
||||
type Error = Error;
|
||||
type PrincipalResource = PrincipalResource;
|
||||
|
||||
fn get_resourcetype() -> &'static [&'static str] {
|
||||
fn get_resourcetype(&self) -> &'static [&'static str] {
|
||||
&[]
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ impl Resource for AddressbookResource {
|
||||
type Error = Error;
|
||||
type PrincipalResource = PrincipalResource;
|
||||
|
||||
fn get_resourcetype() -> &'static [&'static str] {
|
||||
fn get_resourcetype(&self) -> &'static [&'static str] {
|
||||
&["collection", "CARD:addressbook"]
|
||||
}
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ impl Resource for PrincipalResource {
|
||||
type Error = Error;
|
||||
type PrincipalResource = PrincipalResource;
|
||||
|
||||
fn get_resourcetype() -> &'static [&'static str] {
|
||||
fn get_resourcetype(&self) -> &'static [&'static str] {
|
||||
&["collection", "principal"]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user