From d92a369bc2d71564756368dae76681b2c3dde15a Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu@web.de> Date: Sun, 24 May 2020 23:10:20 +0200 Subject: [PATCH] Fix some clippy warnings --- src/ical_parsing.rs | 8 ++++---- src/main.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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: