Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 20005b3

Browse files
TheDan64geofft
authored andcommitted
Updated to work with recent nightly
1 parent c2cd29d commit 20005b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hello-world/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
extern crate alloc;
55
use alloc::borrow::ToOwned;
6-
use alloc::String;
6+
use alloc::string::String;
77

88
#[macro_use]
99
extern crate linux_kernel_module;

src/allocator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ unsafe impl GlobalAlloc for KernelAllocator {
2222
}
2323

2424
#[alloc_error_handler]
25-
extern "C" fn oom(_layout: Layout) -> ! {
25+
fn oom(_layout: Layout) -> ! {
2626
panic!("Out of memory!");
2727
}

0 commit comments

Comments
 (0)