Skip to content

Commit

Permalink
Export AllocError as well as Allocator.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfallin committed Jan 16, 2021
1 parent 7648ce9 commit c5c01d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/raw/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub use self::inner::*;
#[cfg(feature = "nightly")]
mod inner {
use crate::alloc::alloc::Layout;
pub use crate::alloc::alloc::{Allocator, Global};
pub use crate::alloc::alloc::{AllocError, Allocator, Global};
use core::ptr::NonNull;

#[allow(clippy::map_err_ignore)]
Expand Down
2 changes: 1 addition & 1 deletion src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cfg_if! {
}

mod alloc;
pub use self::alloc::{do_alloc, Allocator, Global};
pub use self::alloc::{do_alloc, AllocError, Allocator, Global};

mod bitmask;

Expand Down

0 comments on commit c5c01d6

Please sign in to comment.