diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-06-18 20:49:03 +0530 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2014-06-27 18:50:32 -0600 |
commit | f5b5b337d3fd5eb6632e3133486e16eeea7566a5 (patch) | |
tree | 2c0f5a6ebc85a487a6f72976f021b555ce593da8 /src/components/util/workqueue.rs | |
parent | 56dd5b943eb9652e160d6701c67eb1ff44eeee2a (diff) | |
download | servo-f5b5b337d3fd5eb6632e3133486e16eeea7566a5.tar.gz servo-f5b5b337d3fd5eb6632e3133486e16eeea7566a5.zip |
Upgrade to latest Rust.
Diffstat (limited to 'src/components/util/workqueue.rs')
-rw-r--r-- | src/components/util/workqueue.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/util/workqueue.rs b/src/components/util/workqueue.rs index 5caa6ff7ca0..ccfbc03da1a 100644 --- a/src/components/util/workqueue.rs +++ b/src/components/util/workqueue.rs @@ -8,12 +8,12 @@ //! higher-level API on top of this could allow safe fork-join parallelism. use native; -use rand; use rand::{Rng, XorShiftRng}; use std::mem; +use std::rand::weak_rng; use std::sync::atomics::{AtomicUint, SeqCst}; use std::sync::deque::{Abort, BufferPool, Data, Empty, Stealer, Worker}; -use std::task::TaskOpts; +use rustrt::task::TaskOpts; /// A unit of work. /// @@ -217,7 +217,7 @@ impl<QueueData: Send, WorkData: Send> WorkQueue<QueueData, WorkData> { port: worker_port, chan: supervisor_chan.clone(), other_deques: vec!(), - rng: rand::weak_rng(), + rng: weak_rng(), }); } |