From 022bbbd64e2fc7b150e0f92dc5edf170ea71c881 Mon Sep 17 00:00:00 2001 From: Kenny Strawn Date: Fri, 29 Mar 2024 18:57:19 -0700 Subject: [PATCH] phil-opp/blog_os#1307: rustfmt --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5dd4d72..b7df1fc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ +use core::alloc::{GlobalAlloc, Layout}; pub use slab_allocator_rs::LockedHeap; -use core::alloc::{Layout,GlobalAlloc}; use spin::Lazy; // A wrapper around `slab_allocator_rs::LockedHeap` that initializes the heap lazily. @@ -32,4 +32,4 @@ unsafe impl GlobalAlloc for LazyHeap { unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { unsafe { self.0.dealloc(ptr, layout) } } -} \ No newline at end of file +}