This commit is contained in:
Lennart
2024-06-30 17:21:38 +02:00
parent ce7869f44d
commit 9a2173c987

View File

@@ -100,7 +100,7 @@ impl Event {
} }
pub fn get_last_occurence(&self) -> Result<NaiveDateTime> { pub fn get_last_occurence(&self) -> Result<NaiveDateTime> {
// This is safe since we enforce the event's existance in the constructor // This is safe since we enforce the event's existence in the constructor
let event = self.cal.events.first().unwrap(); let event = self.cal.events.first().unwrap();
if event.get_property("RRULE").is_some() { if event.get_property("RRULE").is_some() {