1
0
Fork 0
forked from wry/wry

all: address clippy lints

This commit is contained in:
Julian Orth 2025-04-03 16:36:05 +02:00
parent b2dbcc742c
commit f4bc7f17bd
4 changed files with 4 additions and 4 deletions

View file

@ -110,7 +110,7 @@ async fn run(n: Rc<ExtIdleNotificationV1>, skip_if_inhibited: bool) {
.client
.state
.wheel
.timeout((n.duration_usec - elapsed + 999) / 1000)
.timeout((n.duration_usec - elapsed).div_ceil(1000))
.await;
if let Err(e) = res {
log::error!("Could not wait for idle timeout to elapse: {}", ErrorFmt(e));