diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-10-18 10:38:46 +0200 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2013-10-18 10:43:41 +0200 |
| commit | 3011801256d112e1930726058362b8fd22ea40dd (patch) | |
| tree | a2b7c4fe80d64bf520a76cba762cab423e2a26b4 /src/libextra/arc.rs | |
| parent | d4a32386f3b61a4997de54ed00c0a80fd07ecc75 (diff) | |
| download | rust-3011801256d112e1930726058362b8fd22ea40dd.tar.gz rust-3011801256d112e1930726058362b8fd22ea40dd.zip | |
Made `std::task::TaskBuilder::future_result()` easier to use
Diffstat (limited to 'src/libextra/arc.rs')
| -rw-r--r-- | src/libextra/arc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libextra/arc.rs b/src/libextra/arc.rs index 1cb30eaa040..d1e7534795b 100644 --- a/src/libextra/arc.rs +++ b/src/libextra/arc.rs @@ -823,7 +823,7 @@ mod tests { do 5.times { let arc3 = arc.clone(); let mut builder = task::task(); - builder.future_result(|r| children.push(r)); + children.push(builder.future_result()); do builder.spawn { do arc3.read |num| { assert!(*num >= 0); |
