Cargo update
This commit is contained in:
@@ -105,8 +105,7 @@ async fn main() {
|
||||
};
|
||||
|
||||
let sleep_duration = next_appointment
|
||||
.map(|timestamp| NaiveDateTime::from_timestamp_opt(timestamp, 0).unwrap())
|
||||
.map(|naive_date_time| DateTime::<Utc>::from_utc(naive_date_time, Utc))
|
||||
.map(|timestamp| Utc.timestamp_opt(timestamp, 0).unwrap())
|
||||
.map(|date_time| date_time - now)
|
||||
.map(|duration| duration.to_std().unwrap())
|
||||
.filter(|duration| *duration < poll_duration)
|
||||
|
||||
Reference in New Issue
Block a user