Skip to content

Commit 1bf0c8c

Browse files
authored
cranelift: fix broken selinux-fix refactor (bytecodealliance#4001)
1 parent f62199d commit 1bf0c8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cranelift/jit/src/memory.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ impl PtrLen {
3737
MmapMut::map_anon(alloc_size).map(|mut mmap| {
3838
// The order here is important; we assign the pointer first to get
3939
// around compile time borrow errors.
40-
Ok(Self {
40+
Self {
4141
ptr: mmap.as_mut_ptr(),
4242
map: Some(mmap),
4343
len: alloc_size,
44-
})
44+
}
4545
})
4646
}
4747

0 commit comments

Comments
 (0)