mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add missing imports
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user