From 571cc7f8e98da46735a5728387c768cde75d010c Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 1 Feb 2015 12:44:15 -0500 Subject: remove all kind annotations from closures --- src/libstd/sync/future.rs | 4 ++-- src/libstd/sync/task_pool.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/future.rs b/src/libstd/sync/future.rs index 8340652d19a..a230e35dac8 100644 --- a/src/libstd/sync/future.rs +++ b/src/libstd/sync/future.rs @@ -126,7 +126,7 @@ impl Future { * waiting for the result to be received on the port. */ - Future::from_fn(move |:| { + Future::from_fn(move || { rx.recv().unwrap() }) } @@ -143,7 +143,7 @@ impl Future { let (tx, rx) = channel(); - Thread::spawn(move |:| { + Thread::spawn(move || { // Don't panic if the other end has hung up let _ = tx.send(blk()); }); diff --git a/src/libstd/sync/task_pool.rs b/src/libstd/sync/task_pool.rs index 1bfcbcf96f1..684a46fd6ff 100644 --- a/src/libstd/sync/task_pool.rs +++ b/src/libstd/sync/task_pool.rs @@ -112,7 +112,7 @@ impl TaskPool { } fn spawn_in_pool(jobs: Arc>>) { - Thread::spawn(move |:| { + Thread::spawn(move || { // Will spawn a new thread on panic unless it is cancelled. let sentinel = Sentinel::new(&jobs); -- cgit 1.4.1-3-g733a5