From bb9172d7b512c36f34d34b024640f030d1fde2eb Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 8 Mar 2014 18:21:49 -0800 Subject: Fix fallout of removing default bounds This is all purely fallout of getting the previous commit to compile. --- src/libsync/future.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libsync/future.rs') 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 { } enum FutureState { - Pending(proc() -> A), + Pending(proc:Send() -> A), Evaluating, Forced(A) } @@ -90,7 +90,7 @@ impl Future { Future {state: Forced(val)} } - pub fn from_fn(f: proc() -> A) -> Future { + pub fn from_fn(f: proc:Send() -> A) -> Future { /*! * Create a future from a function. * @@ -117,7 +117,7 @@ impl Future { }) } - pub fn spawn(blk: proc() -> A) -> Future { + pub fn spawn(blk: proc:Send() -> A) -> Future { /*! * Create a future from a unique closure. * -- cgit 1.4.1-3-g733a5