From 1bf0c8c220e37c91cbe0946d944bdb6f0c13e35c Mon Sep 17 00:00:00 2001 From: Mrmaxmeier Date: Fri, 8 Apr 2022 03:45:21 +0200 Subject: [PATCH] cranelift: fix broken `selinux-fix` refactor (#4001) --- cranelift/jit/src/memory.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cranelift/jit/src/memory.rs b/cranelift/jit/src/memory.rs index 5adde6d3dc..c183da9db2 100644 --- a/cranelift/jit/src/memory.rs +++ b/cranelift/jit/src/memory.rs @@ -37,11 +37,11 @@ impl PtrLen { MmapMut::map_anon(alloc_size).map(|mut mmap| { // The order here is important; we assign the pointer first to get // around compile time borrow errors. - Ok(Self { + Self { ptr: mmap.as_mut_ptr(), map: Some(mmap), len: alloc_size, - }) + } }) }