Skip to content

Commit 57d91d6

Browse files
committed
cleanup
1 parent 03ee761 commit 57d91d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/priv_io.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ fn open_socket(params: &ConnectParams) -> Result<InternalStream, ConnectError> {
112112
}
113113
#[cfg(feature = "unix_socket")]
114114
ConnectTarget::Unix(ref path) => {
115-
let mut path = path.clone();
116-
path.push(&format!(".s.PGSQL.{}", port));
115+
let path = path.join(&format!(".s.PGSQL.{}", port));
117116
Ok(try!(UnixStream::connect(&path).map(InternalStream::Unix)))
118117
}
119118
}

0 commit comments

Comments
 (0)