From d1eb68e8d7d2883c70304021d5443c96bca18abb Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Sun, 9 Nov 2014 17:15:45 +1100 Subject: Create UnsignedInt trait and deprecate free functions --- src/libsync/mpmc_bounded_queue.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsync') 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 State { 2u } else { // use next power of 2 as capacity - next_power_of_two(capacity) + capacity.next_power_of_two() } } else { capacity -- cgit 1.4.1-3-g733a5