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/task/mod.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/task/mod.rs')
| -rw-r--r-- | src/libstd/task/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/task/mod.rs b/src/libstd/task/mod.rs index 5915dd45c08..f9b918d6d12 100644 --- a/src/libstd/task/mod.rs +++ b/src/libstd/task/mod.rs @@ -554,7 +554,7 @@ pub fn try<T:Send>(f: proc() -> T) -> Result<T, ~Any> { /* Lifecycle functions */ /// Read the name of the current task. -pub fn with_task_name<U>(blk: &fn(Option<&str>) -> U) -> U { +pub fn with_task_name<U>(blk: |Option<&str>| -> U) -> U { use rt::task::Task; if in_green_task_context() { @@ -605,7 +605,7 @@ pub fn failing() -> bool { * } * ``` */ -pub fn unkillable<U>(f: &fn() -> U) -> U { +pub fn unkillable<U>(f: || -> U) -> U { use rt::task::Task; unsafe { @@ -640,7 +640,7 @@ pub fn unkillable<U>(f: &fn() -> U) -> U { * // Task is unkillable again * } */ -pub fn rekillable<U>(f: &fn() -> U) -> U { +pub fn rekillable<U>(f: || -> U) -> U { use rt::task::Task; unsafe { @@ -1201,7 +1201,7 @@ fn test_spawn_sched_blocking() { } #[cfg(test)] -fn avoid_copying_the_body(spawnfn: &fn(v: proc())) { +fn avoid_copying_the_body(spawnfn: |v: proc()|) { let (p, ch) = stream::<uint>(); let x = ~1; |
