all: address clippy lints
This commit is contained in:
parent
b2dbcc742c
commit
f4bc7f17bd
4 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue