fix: use correct io:Error constructor in net/socket.rs

This commit is contained in:
Austin Bonander 2020-06-27 11:15:11 -07:00
parent 518eb0c41a
commit e2dabeeeee

View File

@ -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.",
))