Add missing imports

This commit is contained in:
Philipp Oppermann
2020-01-15 18:13:43 +01:00
parent 687c81eedb
commit 2cfa13a48f

View File

@@ -1061,7 +1061,11 @@ TODO graphic
The implementation of the `dealloc` method looks like this:
```rust
// in `impl` block in src/allocator/fixed_size_block.rs
// in src/allocator/fixed_size_block.rs
use core::{mem, ptr::NonNull};
// inside the `unsafe impl GlobalAlloc` block
#[allow(unused_unsafe)]
unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {