From bcc42644e6093954f65ccae3d02f1cc3760b6cf3 Mon Sep 17 00:00:00 2001 From: Julius de Bruijn Date: Thu, 25 Jun 2020 21:10:31 +0200 Subject: [PATCH] Do not do compile-time checks on pg socket --- sqlx-core/src/postgres/options.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sqlx-core/src/postgres/options.rs b/sqlx-core/src/postgres/options.rs index 9731ed47..ca355c7f 100644 --- a/sqlx-core/src/postgres/options.rs +++ b/sqlx-core/src/postgres/options.rs @@ -221,21 +221,11 @@ impl PgConnectOptions { /// switching the connection method from TCP to the corresponding socket. /// /// By default set to `None`. - #[cfg(unix)] pub fn socket(mut self, path: impl AsRef) -> Self { self.socket = Some(path.as_ref().to_path_buf()); self } - /// Sets a custom path to a directory containing a unix domain socket, - /// switching the connection method from TCP to the corresponding socket. - /// - /// By default set to `None`. - #[cfg(not(unix))] - pub fn socket(mut self, _: impl AsRef) -> Self { - self - } - /// Sets the username to connect as. /// /// Defaults to be the same as the operating system name of