From 23552b44a488cc17acfb7153b755b1e3a012fa2b Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 28 Dec 2018 14:33:27 -0500 Subject: [PATCH] Simplify unix path handling a bit --- tokio-postgres/src/builder.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); } }