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

Updated to work with recent nightly #82

Merged
merged 1 commit into from
May 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hello-world/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}