Fixing illegal moves.

This commit is contained in:
Eric Holk 2012-06-21 14:09:39 -07:00
parent 40559ea839
commit 28ab0e8c03

View File

@ -34,14 +34,8 @@ 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);
cond.signal();
}
none { fail }
};
(*data).push(option::unwrap(xx));
cond.signal();
}
}