Skip to content

Commit 9e25e47

Browse files
committed
cleanup
1 parent 8dcad81 commit 9e25e47

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tokio-postgres/src/proto/connect_once.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ use lazy_static::lazy_static;
66
use state_machine_future::{transition, RentToOwn, StateMachineFuture};
77
use std::io;
88
use std::net::{SocketAddr, ToSocketAddrs};
9-
#[cfg(unix)]
10-
use std::path::Path;
119
use std::time::Instant;
1210
use std::vec;
1311
use tokio_tcp::TcpStream;
@@ -111,7 +109,7 @@ where
111109
}
112110
#[cfg(unix)]
113111
Host::Unix(host) => {
114-
let path = Path::new(host).join(format!(".s.PGSQL.{}", port));
112+
let path = host.join(format!(".s.PGSQL.{}", port));
115113
transition!(ConnectingUnix {
116114
future: UnixStream::connect(path),
117115
timeout,

0 commit comments

Comments
 (0)