diff options
Diffstat (limited to 'src/libsync/mpmc_bounded_queue.rs')
| -rw-r--r-- | src/libsync/mpmc_bounded_queue.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsync/mpmc_bounded_queue.rs b/src/libsync/mpmc_bounded_queue.rs index f75511ecbc2..4414f710b15 100644 --- a/src/libsync/mpmc_bounded_queue.rs +++ b/src/libsync/mpmc_bounded_queue.rs @@ -34,7 +34,7 @@ use core::prelude::*; use alloc::arc::Arc; use collections::Vec; -use core::num::next_power_of_two; +use core::num::UnsignedInt; use core::cell::UnsafeCell; use atomic::{AtomicUint,Relaxed,Release,Acquire}; @@ -66,7 +66,7 @@ impl<T: Send> State<T> { 2u } else { // use next power of 2 as capacity - next_power_of_two(capacity) + capacity.next_power_of_two() } } else { capacity |
