Skip to content

Commit

Permalink
fix(alloc): fix missing Box imports
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <[email protected]>
  • Loading branch information
hawkw committed Apr 11, 2022
1 parent 208defc commit dab0d49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ unsafe impl<T: Send> Sync for Ref<'_, T> {}

impl<T> Slot<T> {
#[cfg(feature = "alloc")]
pub(crate) fn make_boxed_array(capacity: usize) -> Box<[Self]> {
pub(crate) fn make_boxed_array(capacity: usize) -> alloc::boxed::Box<[Self]> {
(0..capacity).map(|i| Slot::new(i)).collect()
}

Expand Down
1 change: 1 addition & 0 deletions src/mpsc/async_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ feature! {
#![feature = "alloc"]

use crate::loom::sync::Arc;
use alloc::boxed::Box;

/// Returns a new asynchronous multi-producer, single consumer (MPSC)
/// channel with the provided capacity.
Expand Down

0 comments on commit dab0d49

Please sign in to comment.