mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-01 06:52:19 +00:00
fix: use correct io:Error
constructor in net/socket.rs
This commit is contained in:
parent
518eb0c41a
commit
e2dabeeeee
@ -30,7 +30,7 @@ impl Socket {
|
||||
|
||||
#[cfg(not(unix))]
|
||||
pub async fn connect_uds(_: impl AsRef<Path>) -> io::Result<Self> {
|
||||
Err(io::Error(
|
||||
Err(io::Error::new(
|
||||
io::ErrorKind::Other,
|
||||
"Unix domain sockets are not supported outside Unix platforms.",
|
||||
))
|
||||
|
Loading…
x
Reference in New Issue
Block a user