kernel: hosted: run rustfmt

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-10-30 10:14:33 +08:00
parent 5f6b42d534
commit 702676031e

View file

@ -232,7 +232,7 @@ fn handle_connection(
xous_kernel::Message::Scalar(_) xous_kernel::Message::Scalar(_)
| xous_kernel::Message::BlockingScalar(_) => (), | xous_kernel::Message::BlockingScalar(_) => (),
} }
}, }
SysCall::ReturnMemory(_sender, ref mut buf) => { SysCall::ReturnMemory(_sender, ref mut buf) => {
let sliced_data = data.into_boxed_slice(); let sliced_data = data.into_boxed_slice();
assert_eq!( assert_eq!(
@ -242,15 +242,13 @@ fn handle_connection(
sliced_data.len(), sliced_data.len(),
buf.len() buf.len()
); );
buf.addr = buf.addr = match MemoryAddress::new(Box::into_raw(sliced_data)
match MemoryAddress::new(Box::into_raw(sliced_data) as *mut u8
as *mut u8 as usize)
as usize) {
{ Some(a) => a,
Some(a) => a, _ => unreachable!(),
_ => unreachable!(), };
};
} }
_ => panic!("unsupported message type"), _ => panic!("unsupported message type"),
} }