diff options
Diffstat (limited to 'src/libcore/future.rs')
| -rw-r--r-- | src/libcore/future.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/future.rs b/src/libcore/future.rs index 8ae8f632083..94f7aa8f3c5 100644 --- a/src/libcore/future.rs +++ b/src/libcore/future.rs @@ -90,7 +90,7 @@ fn from_port<A:Send>(+port: future_pipe::client::waiting<A>) -> Future<A> { do from_fn |move port| { let mut port_ = None; port_ <-> *port; - let port = option::unwrap(port_); + let port = option::unwrap(move port_); match recv(move port) { future_pipe::completed(move data) => move data } |
