Merge pull request #71 from steveklabnik/master

Fix the build
This commit is contained in:
Steven Fackler 2014-11-06 07:15:19 -08:00
commit e99a3c6098

View File

@ -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));