Commit bc0159cb authored by Stefan Lankes's avatar Stefan Lankes Committed by Stefan Lankes
Browse files

minor changes to pass the format check

parent c60a82fd
...@@ -205,7 +205,9 @@ unsafe impl GlobalAlloc for LockedHeap { ...@@ -205,7 +205,9 @@ unsafe impl GlobalAlloc for LockedHeap {
.lock() .lock()
.alloc(layout) .alloc(layout)
.ok() .ok()
.map_or(ptr::null_mut() as *mut u8, |mut mem| mem.as_mut().as_mut_ptr()) .map_or(ptr::null_mut() as *mut u8, |mut mem| {
mem.as_mut().as_mut_ptr()
})
} }
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment