about summary refs log tree commit diff
path: root/src/libstd/sync/task_pool.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-02-23 17:16:46 +1300
committerNick Cameron <ncameron@mozilla.com>2015-02-23 17:16:46 +1300
commit1db684f67ad277ab7a002ee238872ca68fb13b27 (patch)
tree10efe7339c5ce108ef697775751bf98760fd4380 /src/libstd/sync/task_pool.rs
parent5d8c9f5c9976a906c8d2b41f9375df2f735ec23b (diff)
downloadrust-1db684f67ad277ab7a002ee238872ca68fb13b27.tar.gz
rust-1db684f67ad277ab7a002ee238872ca68fb13b27.zip
int audit - std::sync
Diffstat (limited to 'src/libstd/sync/task_pool.rs')
-rw-r--r--src/libstd/sync/task_pool.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sync/task_pool.rs b/src/libstd/sync/task_pool.rs
index a45048be24c..738aeccbe7a 100644
--- a/src/libstd/sync/task_pool.rs
+++ b/src/libstd/sync/task_pool.rs
@@ -89,7 +89,7 @@ impl TaskPool {
     /// # Panics
     ///
     /// This function will panic if `threads` is 0.
-    pub fn new(threads: uint) -> TaskPool {
+    pub fn new(threads: usize) -> TaskPool {
         assert!(threads >= 1);
 
         let (tx, rx) = channel::<Thunk>();
@@ -142,7 +142,7 @@ mod test {
     use super::*;
     use sync::mpsc::channel;
 
-    const TEST_TASKS: uint = 4;
+    const TEST_TASKS: u32 = 4;
 
     #[test]
     fn test_works() {