Fix fallout of removing default bounds
This is all purely fallout of getting the previous commit to compile.
This commit is contained in:
parent
bdd24b2a56
commit
bb9172d7b5
61 changed files with 378 additions and 364 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue