aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/net/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/net/util.rs')
-rw-r--r--src/components/net/util.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/net/util.rs b/src/components/net/util.rs
index cd8a177a7ef..92f142f2db7 100644
--- a/src/components/net/util.rs
+++ b/src/components/net/util.rs
@@ -2,7 +2,9 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use core::comm::{Chan, Port};
+use std::comm;
+use std::comm::{Chan, Port};
+use std::task;
pub fn spawn_listener<A: Owned>(f: ~fn(Port<A>)) -> Chan<A> {
let (setup_port, setup_chan) = comm::stream();