diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-08 18:21:49 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-27 10:14:50 -0700 |
| commit | bb9172d7b512c36f34d34b024640f030d1fde2eb (patch) | |
| tree | 0e4ea18ae30a12954db6b9fbe95f62222ade9301 /src/libsync/future.rs | |
| parent | bdd24b2a56e8bf6b952bd8880364fb0a57c2c540 (diff) | |
| download | rust-bb9172d7b512c36f34d34b024640f030d1fde2eb.tar.gz rust-bb9172d7b512c36f34d34b024640f030d1fde2eb.zip | |
Fix fallout of removing default bounds
This is all purely fallout of getting the previous commit to compile.
Diffstat (limited to 'src/libsync/future.rs')
| -rw-r--r-- | src/libsync/future.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsync/future.rs b/src/libsync/future.rs index 74a15dc9f0e..8fc3dd3a460 100644 --- a/src/libsync/future.rs +++ b/src/libsync/future.rs @@ -34,7 +34,7 @@ pub struct Future<A> { } enum FutureState<A> { - Pending(proc() -> A), + Pending(proc:Send() -> A), Evaluating, Forced(A) } @@ -90,7 +90,7 @@ impl<A> Future<A> { Future {state: Forced(val)} } - pub fn from_fn(f: proc() -> A) -> Future<A> { + pub fn from_fn(f: proc:Send() -> A) -> Future<A> { /*! * Create a future from a function. * @@ -117,7 +117,7 @@ impl<A:Send> Future<A> { }) } - pub fn spawn(blk: proc() -> A) -> Future<A> { + pub fn spawn(blk: proc:Send() -> A) -> Future<A> { /*! * Create a future from a unique closure. * |
