From 81d1feb9804f66034df4f218cc8fb0209c7450a7 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 17 Sep 2014 10:47:05 -0700 Subject: Remove #[allow(deprecated)] from libstd --- src/libstd/sync/task_pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/sync') 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 TaskPool { /// 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; } } -- cgit 1.4.1-3-g733a5