diff --git a/sqlx-core/src/net/socket.rs b/sqlx-core/src/net/socket.rs index e8caab09..29a17a74 100644 --- a/sqlx-core/src/net/socket.rs +++ b/sqlx-core/src/net/socket.rs @@ -30,7 +30,7 @@ impl Socket { #[cfg(not(unix))] pub async fn connect_uds(_: impl AsRef) -> io::Result { - Err(io::Error( + Err(io::Error::new( io::ErrorKind::Other, "Unix domain sockets are not supported outside Unix platforms.", ))