From 761ff4e7a6ee6c9bf21e0643ca13fd41c23e59a7 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Thu, 6 Nov 2014 08:25:33 -0500 Subject: [PATCH] Fix the build src/io.rs:79:13: 79:50 error: this function takes 1 parameter but 2 parameters were supplied [E0061] src/io.rs:79 tcp::TcpStream::connect(host[], port).map(TcpStream), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This is now fixed. --- src/io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io.rs b/src/io.rs index 8061f71ff..33b7bf870 100644 --- a/src/io.rs +++ b/src/io.rs @@ -76,7 +76,7 @@ fn open_socket(params: &ConnectParams) let port = params.port.unwrap_or(DEFAULT_PORT); let socket = match params.target { ConnectTarget::Tcp(ref host) => - tcp::TcpStream::connect(host[], port).map(TcpStream), + tcp::TcpStream::connect((host[], port)).map(TcpStream), ConnectTarget::Unix(ref path) => { let mut path = path.clone(); path.push(format!(".s.PGSQL.{}", port));