Fix some clippy warnings

This commit is contained in:
FliegendeWurst 2020-05-24 23:10:20 +02:00
parent 5265acbd9a
commit d92a369bc2
2 changed files with 6 additions and 6 deletions

View File

@ -81,8 +81,8 @@ fn process_event(event: IcalEvent) -> Result<Event, Error> {
summary: summary.unwrap_or_default(), summary: summary.unwrap_or_default(),
description: description.unwrap_or_default(), description: description.unwrap_or_default(),
description_html, description_html,
start: start, start,
end: end, end,
duration, duration,
location: location.unwrap_or_default(), location: location.unwrap_or_default(),
}) })
@ -106,7 +106,7 @@ fn process_dt(value: &str) -> Result<NaiveDateTime, Error> {
fn process_duration(_value: &str) -> Result<Duration, Error> { fn process_duration(_value: &str) -> Result<Duration, Error> {
// TODO // TODO
return Err(Error::Data("duration parsing not implemented")); Err(Error::Data("duration parsing not implemented"))
} }
#[derive(Error, Debug)] #[derive(Error, Debug)]

View File

@ -48,9 +48,9 @@ static CLIENT: Lazy<Client> = Lazy::new(Client::new);
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), Error> { async fn main() -> Result<(), Error> {
&*OWNER; Lazy::force(&OWNER);
&*API; Lazy::force(&API);
println!("Initializing Trilium API.."); println!("Initializing Trilium API..");
// Trilium login: // Trilium login: