cranelift: fix broken selinux-fix refactor (#4001)
This commit is contained in:
@@ -37,11 +37,11 @@ impl PtrLen {
|
|||||||
MmapMut::map_anon(alloc_size).map(|mut mmap| {
|
MmapMut::map_anon(alloc_size).map(|mut mmap| {
|
||||||
// The order here is important; we assign the pointer first to get
|
// The order here is important; we assign the pointer first to get
|
||||||
// around compile time borrow errors.
|
// around compile time borrow errors.
|
||||||
Ok(Self {
|
Self {
|
||||||
ptr: mmap.as_mut_ptr(),
|
ptr: mmap.as_mut_ptr(),
|
||||||
map: Some(mmap),
|
map: Some(mmap),
|
||||||
len: alloc_size,
|
len: alloc_size,
|
||||||
})
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user