We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dcad81 commit 9e25e47Copy full SHA for 9e25e47
1 file changed
tokio-postgres/src/proto/connect_once.rs
@@ -6,8 +6,6 @@ use lazy_static::lazy_static;
6
use state_machine_future::{transition, RentToOwn, StateMachineFuture};
7
use std::io;
8
use std::net::{SocketAddr, ToSocketAddrs};
9
-#[cfg(unix)]
10
-use std::path::Path;
11
use std::time::Instant;
12
use std::vec;
13
use tokio_tcp::TcpStream;
@@ -111,7 +109,7 @@ where
111
109
}
112
110
#[cfg(unix)]
113
Host::Unix(host) => {
114
- let path = Path::new(host).join(format!(".s.PGSQL.{}", port));
+ let path = host.join(format!(".s.PGSQL.{}", port));
115
transition!(ConnectingUnix {
116
future: UnixStream::connect(path),
117
timeout,
0 commit comments