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

@ -14,7 +14,7 @@ pub async fn handle_hardware_cursor_tick(state: Rc<State>) {
continue;
}
loop {
let tick = (cursor.time_until_tick().as_nanos() + 999_999) / 1_000_000;
let tick = cursor.time_until_tick().as_nanos().div_ceil(1_000_000);
if tick > 0 {
let res = select! {
_ = state.hardware_tick_cursor.non_empty().fuse() => break,