mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
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:
parent
e44eec2334
commit
034ab9a04c
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ pub fn map_memory_post(
|
||||||
_virt: Option<MemoryAddress>,
|
_virt: Option<MemoryAddress>,
|
||||||
_size: usize,
|
_size: usize,
|
||||||
_flags: MemoryFlags,
|
_flags: MemoryFlags,
|
||||||
mut range: MemoryRange,
|
range: MemoryRange,
|
||||||
) -> core::result::Result<MemoryRange, Error> {
|
) -> core::result::Result<MemoryRange, Error> {
|
||||||
let layout = Layout::from_size_align(range.len(), 4096).unwrap();
|
let layout = Layout::from_size_align(range.len(), 4096).unwrap();
|
||||||
let new_mem = MemoryAddress::new(unsafe { alloc(layout) } as usize).ok_or(Error::BadAddress)?;
|
let new_mem = MemoryAddress::new(unsafe { alloc(layout) } as usize).ok_or(Error::BadAddress)?;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue