Fixing illegal moves.
This commit is contained in:
parent
40559ea839
commit
28ab0e8c03
@ -34,15 +34,9 @@ fn send<T: send>(c: chan<T>, -x: T) {
|
||||
(*c).with {|cond, data|
|
||||
let mut xx = none;
|
||||
xx <-> x;
|
||||
alt xx {
|
||||
some(y) {
|
||||
let mut x <- y;
|
||||
(*data).push(x);
|
||||
(*data).push(option::unwrap(xx));
|
||||
cond.signal();
|
||||
}
|
||||
none { fail }
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
fn recv<T: send>(p: port<T>) -> T {
|
||||
|
Loading…
Reference in New Issue
Block a user