Skip to content

Commit 761ff4e

Browse files
committed
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.
1 parent 8ffc761 commit 761ff4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn open_socket(params: &ConnectParams)
7676
let port = params.port.unwrap_or(DEFAULT_PORT);
7777
let socket = match params.target {
7878
ConnectTarget::Tcp(ref host) =>
79-
tcp::TcpStream::connect(host[], port).map(TcpStream),
79+
tcp::TcpStream::connect((host[], port)).map(TcpStream),
8080
ConnectTarget::Unix(ref path) => {
8181
let mut path = path.clone();
8282
path.push(format!(".s.PGSQL.{}", port));

0 commit comments

Comments
 (0)