about summary refs log tree commit diff
path: root/src/libstd/sys/windows/net.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-11 15:29:51 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-11 15:45:15 -0800
commitd2f990f2b0a5a6bdc0834ab8e8ea17bb5212efee (patch)
treeb0f0c941332106bfa8c771e76f7601838b94f990 /src/libstd/sys/windows/net.rs
parentadcda460115b1f491a7624752901b7410591dfc5 (diff)
downloadrust-d2f990f2b0a5a6bdc0834ab8e8ea17bb5212efee.tar.gz
rust-d2f990f2b0a5a6bdc0834ab8e8ea17bb5212efee.zip
More test fixes and rebase conflicts
Diffstat (limited to 'src/libstd/sys/windows/net.rs')
-rw-r--r--src/libstd/sys/windows/net.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/net.rs b/src/libstd/sys/windows/net.rs
index 4df72f6d4ab..3451232f40a 100644
--- a/src/libstd/sys/windows/net.rs
+++ b/src/libstd/sys/windows/net.rs
@@ -62,7 +62,7 @@ pub fn cvt_r<T: SignedInt, F>(mut f: F) -> io::Result<T> where F: FnMut() -> T {
 
 impl Socket {
     pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> {
-        let fam = match addr.ip {
+        let fam = match addr.ip() {
             IpAddr::V4(..) => libc::AF_INET,
             IpAddr::V6(..) => libc::AF_INET6,
         };