Add rust lint CI job. (#9)
All checks were successful
Check / Check Rust (push) Successful in 20s

Additionally fix the many lint errors that are occurring. (or disable them).

Reviewed-on: #9
Co-authored-by: Drew Galbraith <drew@tiramisu.one>
Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
Drew 2025-12-14 09:02:59 +00:00 committed by Drew
parent 311755c812
commit 1a48911745
30 changed files with 177 additions and 108 deletions

View file

@ -37,7 +37,7 @@ pub trait YunqServer {
.expect("Failed to reply"),
Err(err) => {
crate::message::serialize_error(&mut byte_buffer, err);
syscall::reply_port_send(reply_port_cap, &byte_buffer.slice(0x10), &[])
syscall::reply_port_send(reply_port_cap, byte_buffer.slice(0x10), &[])
.expect("Failed to reply w/ error")
}
}
@ -84,11 +84,11 @@ where
.at::<u64>(8)
.expect("Failed to access request length.");
let self_clone = self.clone();
spawner.spawn(Task::new((async move || {
spawner.spawn(Task::new(async move {
self_clone
.handle_request_and_response(method, byte_buffer, cap_buffer, reply_port_cap)
.await;
})()));
.await
}));
}
}
@ -113,12 +113,10 @@ where
.expect("Failed to reply"),
Err(err) => {
crate::message::serialize_error(&mut byte_buffer, err);
syscall::reply_port_send(reply_port_cap, &byte_buffer.slice(0x10), &[])
syscall::reply_port_send(reply_port_cap, byte_buffer.slice(0x10), &[])
.expect("Failed to reply w/ error")
}
}
()
}
}