From 0f8943952ddb78910acbb15464d15310d9eb7308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=9A=E5=9D=9A=E5=86=B0?= Date: Thu, 31 Jan 2019 12:30:45 +0800 Subject: [PATCH] fix missing '#[cfg(unix)]' --- tokio-postgres/src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tokio-postgres/src/config.rs b/tokio-postgres/src/config.rs index eb4b97e2..1ebe2b9a 100644 --- a/tokio-postgres/src/config.rs +++ b/tokio-postgres/src/config.rs @@ -236,6 +236,7 @@ impl Config { /// Adds a Unix socket host to the configuration. /// /// Unlike `host`, this method allows non-UTF8 paths. + #[cfg(unix)] pub fn host_path(&mut self, host: T) -> &mut Config where T: AsRef,