diff --git a/src/allocator.rs b/src/allocator.rs index 17cd9aec..d39a0e8c 100644 --- a/src/allocator.rs +++ b/src/allocator.rs @@ -2,10 +2,10 @@ use alloc::alloc::{GlobalAlloc, Layout}; use core::ptr::null_mut; use linked_list_allocator::LockedHeap; use x86_64::{ - structures::paging::{ - mapper::MapToError, FrameAllocator, Mapper, Page, PageTableFlags, Size4KiB, - }, VirtAddr, + structures::paging::{ + FrameAllocator, Mapper, Page, PageTableFlags, Size4KiB, mapper::MapToError, + }, }; pub const HEAP_START: usize = 0x_4444_4444_0000; diff --git a/tests/heap_allocation.rs b/tests/heap_allocation.rs index 854e84ee..e5e8682d 100644 --- a/tests/heap_allocation.rs +++ b/tests/heap_allocation.rs @@ -8,7 +8,7 @@ extern crate alloc; use alloc::{boxed::Box, vec::Vec}; use blog_os::allocator::HEAP_SIZE; -use bootloader::{entry_point, BootInfo}; +use bootloader::{BootInfo, entry_point}; use core::panic::PanicInfo; entry_point!(main);