From acada272c5973c40088254f99ae37047fb261f45 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 26 Jun 2019 13:15:10 +0200 Subject: [PATCH] Add missing import --- .../second-edition/posts/10-heap-allocation/index.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/blog/content/second-edition/posts/10-heap-allocation/index.md b/blog/content/second-edition/posts/10-heap-allocation/index.md index a818b4b9..a7f4b838 100644 --- a/blog/content/second-edition/posts/10-heap-allocation/index.md +++ b/blog/content/second-edition/posts/10-heap-allocation/index.md @@ -398,6 +398,13 @@ If we tried to use this heap region now, a page fault would occur since the virt ```rust // in src/allocator.rs +use x86_64::{ + structures::paging::{ + mapper::MapToError, FrameAllocator, Mapper, Page, PageTableFlags, Size4KiB, + }, + VirtAddr, +}; + pub fn init_heap( mapper: &mut impl Mapper, frame_allocator: &mut impl FrameAllocator,