mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-09-07 21:21:22 +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(),
|
||||
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)]
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user