mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
kernel: hosted: run rustfmt
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
5f6b42d534
commit
702676031e
1 changed files with 8 additions and 10 deletions
|
|
@ -232,7 +232,7 @@ fn handle_connection(
|
|||
xous_kernel::Message::Scalar(_)
|
||||
| xous_kernel::Message::BlockingScalar(_) => (),
|
||||
}
|
||||
},
|
||||
}
|
||||
SysCall::ReturnMemory(_sender, ref mut buf) => {
|
||||
let sliced_data = data.into_boxed_slice();
|
||||
assert_eq!(
|
||||
|
|
@ -242,15 +242,13 @@ fn handle_connection(
|
|||
sliced_data.len(),
|
||||
buf.len()
|
||||
);
|
||||
buf.addr =
|
||||
match MemoryAddress::new(Box::into_raw(sliced_data)
|
||||
as *mut u8
|
||||
as usize)
|
||||
{
|
||||
Some(a) => a,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
buf.addr = match MemoryAddress::new(Box::into_raw(sliced_data)
|
||||
as *mut u8
|
||||
as usize)
|
||||
{
|
||||
Some(a) => a,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
}
|
||||
_ => panic!("unsupported message type"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue