Browse Source

[cleanup]

github_actions
daladim 5 years ago
parent
commit
d07a2b9493
  1. 5
      src/traits.rs

5
src/traits.rs

@ -17,11 +17,6 @@ pub trait CalDavSource<T: PartialCalendar> {
/// This function may trigger an update (that can be a long process, or that can even fail, e.g. in case of a remote server) /// This function may trigger an update (that can be a long process, or that can even fail, e.g. in case of a remote server)
async fn get_calendars_mut(&mut self) -> Result<HashMap<CalendarId, &mut T>, Box<dyn Error>>; async fn get_calendars_mut(&mut self) -> Result<HashMap<CalendarId, &mut T>, Box<dyn Error>>;
//
//
// TODO: find a better search key (do calendars have a unique ID?)
// TODO: search key should be a reference
//
/// Returns the calendar matching the ID /// Returns the calendar matching the ID
async fn get_calendar(&self, id: CalendarId) -> Option<&T>; async fn get_calendar(&self, id: CalendarId) -> Option<&T>;
/// Returns the calendar matching the ID /// Returns the calendar matching the ID

Loading…
Cancel
Save