Skip to content

Commit b2e5f75

Browse files
committed
Fix import paths for Alloc/AllocErr/Layout on latest nightly
Fixes #14
1 parent ba94fcd commit b2e5f75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hole.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use alloc::allocator::{AllocErr, Layout};
1+
use alloc::alloc::{AllocErr, Layout};
22
use core::mem::size_of;
33
use core::ptr::NonNull;
44

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extern crate spin;
1212

1313
extern crate alloc;
1414

15-
use alloc::allocator::{Alloc, AllocErr, Layout};
15+
use alloc::alloc::{Alloc, AllocErr, Layout};
1616
use core::alloc::{GlobalAlloc};
1717
use core::mem;
1818
#[cfg(feature = "use_spin")]

0 commit comments

Comments
 (0)