diff --git a/src/ical_parsing.rs b/src/ical_parsing.rs index c7e3995..dbb4d3e 100644 --- a/src/ical_parsing.rs +++ b/src/ical_parsing.rs @@ -81,10 +81,10 @@ fn process_event(event: IcalEvent) -> Result { summary: summary.unwrap_or_default(), description: description.unwrap_or_default(), description_html, - start: start, - end: end, + start, + end, duration, - location: location.unwrap_or_default(), + location: location.unwrap_or_default(), }) } @@ -106,7 +106,7 @@ fn process_dt(value: &str) -> Result { fn process_duration(_value: &str) -> Result { // TODO - return Err(Error::Data("duration parsing not implemented")); + Err(Error::Data("duration parsing not implemented")) } #[derive(Error, Debug)] diff --git a/src/main.rs b/src/main.rs index 4ef02c1..b3db092 100644 --- a/src/main.rs +++ b/src/main.rs @@ -48,9 +48,9 @@ static CLIENT: Lazy = Lazy::new(Client::new); #[tokio::main] async fn main() -> Result<(), Error> { - &*OWNER; + Lazy::force(&OWNER); - &*API; + Lazy::force(&API); println!("Initializing Trilium API.."); // Trilium login: