cranelift: fix broken selinux-fix refactor (#4001)

This commit is contained in:
Mrmaxmeier
2022-04-08 03:45:21 +02:00
committed by GitHub
parent f62199da8c
commit 1bf0c8c220

View File

@@ -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,
}) }
}) })
} }