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

@ -1507,7 +1507,7 @@ impl VulkanRenderer {
};
match sync {
AcquireSync::None => {}
AcquireSync::Implicit { .. } => {
AcquireSync::Implicit => {
zone!("import implicit");
for plane in &buf.template.dmabuf.planes {
let fd = dma_buf_export_sync_file(&plane.fd, flag)

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));

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,