about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-09-17 10:47:05 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-09-21 21:05:05 -0700
commit81d1feb9804f66034df4f218cc8fb0209c7450a7 (patch)
tree0c524deb8ce5015102af2d2f7a0df93d0fd2f5f7 /src/libstd/sync
parent72841b128df8b6a4eb88b1048548e2eec5244449 (diff)
downloadrust-81d1feb9804f66034df4f218cc8fb0209c7450a7.tar.gz
rust-81d1feb9804f66034df4f218cc8fb0209c7450a7.zip
Remove #[allow(deprecated)] from libstd
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/task_pool.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/task_pool.rs b/src/libstd/sync/task_pool.rs
index 23ba582ec0a..a00eeb1f938 100644
--- a/src/libstd/sync/task_pool.rs
+++ b/src/libstd/sync/task_pool.rs
@@ -79,7 +79,7 @@ impl<T> TaskPool<T> {
     /// Executes the function `f` on a task in the pool. The function
     /// receives a reference to the local data returned by the `init_fn`.
     pub fn execute(&mut self, f: proc(&T):Send) {
-        self.channels.get(self.next_index).send(Execute(f));
+        self.channels[self.next_index].send(Execute(f));
         self.next_index += 1;
         if self.next_index == self.channels.len() { self.next_index = 0; }
     }