diff --git a/hello-world/src/lib.rs b/hello-world/src/lib.rs index e56de246..1799c1ff 100644 --- a/hello-world/src/lib.rs +++ b/hello-world/src/lib.rs @@ -3,7 +3,7 @@ extern crate alloc; use alloc::borrow::ToOwned; -use alloc::String; +use alloc::string::String; #[macro_use] extern crate linux_kernel_module; diff --git a/src/allocator.rs b/src/allocator.rs index ee17f353..45efb943 100644 --- a/src/allocator.rs +++ b/src/allocator.rs @@ -22,6 +22,6 @@ unsafe impl GlobalAlloc for KernelAllocator { } #[alloc_error_handler] -extern "C" fn oom(_layout: Layout) -> ! { +fn oom(_layout: Layout) -> ! { panic!("Out of memory!"); }