Add rust lint CI job. (#9)
All checks were successful
Check / Check Rust (push) Successful in 20s
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:
parent
311755c812
commit
1a48911745
30 changed files with 177 additions and 108 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue