about summary refs log tree commit diff
path: root/src/libstd/net_ip.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-04-16 23:45:29 -0700
committerBrian Anderson <banderson@mozilla.com>2013-04-18 14:07:35 -0700
commitdecd3901d5d63013a98ecc481c441f3f793b5207 (patch)
tree37327a47db463003bcb8c5342fcecb04d56d1c64 /src/libstd/net_ip.rs
parentbc60d84507ba4d492889c9b702318346b5784e5c (diff)
downloadrust-decd3901d5d63013a98ecc481c441f3f793b5207.tar.gz
rust-decd3901d5d63013a98ecc481c441f3f793b5207.zip
core::comm: Modernize constructors to use `new`
Diffstat (limited to 'src/libstd/net_ip.rs')
-rw-r--r--src/libstd/net_ip.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/net_ip.rs b/src/libstd/net_ip.rs
index e920ff20ac5..e58b17b8321 100644
--- a/src/libstd/net_ip.rs
+++ b/src/libstd/net_ip.rs
@@ -113,7 +113,7 @@ enum IpGetAddrErr {
 pub fn get_addr(node: &str, iotask: &iotask)
     -> result::Result<~[IpAddr], IpGetAddrErr> {
     let (output_po, output_ch) = stream();
-    let mut output_ch = Some(SharedChan(output_ch));
+    let mut output_ch = Some(SharedChan::new(output_ch));
     do str::as_buf(node) |node_ptr, len| {
         let output_ch = output_ch.swap_unwrap();
         debug!("slice len %?", len);