Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
indirection42 committed May 23, 2024
1 parent 5cccefa commit ac9eccd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions poc/guest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ extern "C" fn main(ptr: u32) -> u64 {
match byte {
0 => {
let val = b"test";
let size = core::mem::size_of_val(val);
let val_ptr = val.as_ptr();

(val_ptr as u64) << 32 | 4
}
1 => {
Expand All @@ -61,7 +59,6 @@ extern "C" fn main(ptr: u32) -> u64 {
let mut ret: GuestReturn = unsafe { core::mem::zeroed() };
host_call(guest_args, &mut ret);
let res = ret.data0 as u32 + 1;
let size = core::mem::size_of_val(&res);
(&res as *const u32 as u64) << 32 | 1
}
_ => 0,
Expand Down

0 comments on commit ac9eccd

Please sign in to comment.