diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-11-18 21:15:42 -0800 | 
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-11-19 12:40:19 -0800 | 
| commit | 1946265e1a1a32eb922846f314657a4aa7eb1d23 (patch) | |
| tree | 4b83f81bf1b265933a13605d9d35eab67a34ea8d /src/libstd/rt/task.rs | |
| parent | eef913b290f668b4f131ead5be65a1615616426b (diff) | |
| download | rust-1946265e1a1a32eb922846f314657a4aa7eb1d23.tar.gz rust-1946265e1a1a32eb922846f314657a4aa7eb1d23.zip | |
libstd: Change all uses of `&fn(A)->B` over to `|A|->B` in libstd
Diffstat (limited to 'src/libstd/rt/task.rs')
| -rw-r--r-- | src/libstd/rt/task.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/libstd/rt/task.rs b/src/libstd/rt/task.rs index 6d3eec9a921..3fe555de56c 100644 --- a/src/libstd/rt/task.rs +++ b/src/libstd/rt/task.rs @@ -282,7 +282,7 @@ impl Task { } } - pub fn run(&mut self, f: &fn()) { + pub fn run(&mut self, f: ||) { rtdebug!("run called on task: {}", borrow::to_uint(self)); // The only try/catch block in the world. Attempt to run the task's @@ -494,7 +494,7 @@ impl Coroutine { static UNWIND_TOKEN: uintptr_t = 839147; impl Unwinder { - pub fn try(&mut self, f: &fn()) { + pub fn try(&mut self, f: ||) { use unstable::raw::Closure; unsafe { @@ -512,7 +512,7 @@ impl Unwinder { code: transmute(code), env: transmute(env), }; - let closure: &fn() = transmute(closure); + let closure: || = transmute(closure); closure(); } } | 
