mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +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::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"),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue