diff --git a/tokio-postgres/src/builder.rs b/tokio-postgres/src/builder.rs index 18221fbd..c64ad729 100644 --- a/tokio-postgres/src/builder.rs +++ b/tokio-postgres/src/builder.rs @@ -67,10 +67,7 @@ impl Builder { #[cfg(unix)] { if host.starts_with('/') { - Arc::make_mut(&mut self.0) - .host - .push(Host::Unix(PathBuf::from(host))); - return self; + return self.host_path(host); } }