mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-04 08:15:39 +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))]
|
#[cfg(not(unix))]
|
||||||
pub async fn connect_uds(_: impl AsRef<Path>) -> io::Result<Self> {
|
pub async fn connect_uds(_: impl AsRef<Path>) -> io::Result<Self> {
|
||||||
Err(io::Error(
|
Err(io::Error::new(
|
||||||
io::ErrorKind::Other,
|
io::ErrorKind::Other,
|
||||||
"Unix domain sockets are not supported outside Unix platforms.",
|
"Unix domain sockets are not supported outside Unix platforms.",
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user