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,10 +81,10 @@ fn process_event(event: IcalEvent) -> Result<Event, Error> {
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<NaiveDateTime, Error> {
fn process_duration(_value: &str) -> Result<Duration, Error> {
// TODO
return Err(Error::Data("duration parsing not implemented"));
Err(Error::Data("duration parsing not implemented"))
}
#[derive(Error, Debug)]

View File

@ -48,9 +48,9 @@ static CLIENT: Lazy<Client> = 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: