mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-11-22 10:54:57 +00:00
Fix some clippy warnings
This commit is contained in:
parent
5265acbd9a
commit
d92a369bc2
@ -81,10 +81,10 @@ 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)]
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user