xous: test: fix unnecessary mut warning

This fixes a warning in test builds where a field was marked as `mut`
that didn't need to be.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-08-16 15:08:04 +08:00
parent e44eec2334
commit 034ab9a04c

View file

@ -17,7 +17,7 @@ pub fn map_memory_post(
_virt: Option<MemoryAddress>,
_size: usize,
_flags: MemoryFlags,
mut range: MemoryRange,
range: MemoryRange,
) -> core::result::Result<MemoryRange, Error> {
let layout = Layout::from_size_align(range.len(), 4096).unwrap();
let new_mem = MemoryAddress::new(unsafe { alloc(layout) } as usize).ok_or(Error::BadAddress)?;