From: Niko Matsakis Date: Mon, 9 Jan 2012 00:31:26 +0000 (-0800) Subject: change spawn_connected argument to copy mode X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=8944a390c64b892b1718b7817a463e4f227f37a8;p=rust.git change spawn_connected argument to copy mode --- diff --git a/src/libcore/task.rs b/src/libcore/task.rs index afc9d783712..19e3f2b21b3 100644 --- a/src/libcore/task.rs +++ b/src/libcore/task.rs @@ -229,7 +229,7 @@ fn spawn_joinable(+f: sendfn()) -> joinable_task { The new child task along with the port to receive messages and the channel to send messages. */ -fn spawn_connected(f: connected_fn) +fn spawn_connected(+f: connected_fn) -> connected_task { let from_child_port = comm::port::(); let from_child_chan = comm::chan(from_child_port);