diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-02-23 17:16:46 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-02-23 17:16:46 +1300 |
| commit | 1db684f67ad277ab7a002ee238872ca68fb13b27 (patch) | |
| tree | 10efe7339c5ce108ef697775751bf98760fd4380 /src/libstd/sync/task_pool.rs | |
| parent | 5d8c9f5c9976a906c8d2b41f9375df2f735ec23b (diff) | |
| download | rust-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.rs | 4 |
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() { |
