diff --git a/actix-server/Cargo.toml b/actix-server/Cargo.toml index f0658542..931987cf 100644 --- a/actix-server/Cargo.toml +++ b/actix-server/Cargo.toml @@ -31,7 +31,7 @@ actix-utils = "3" futures-core = { version = "0.3.17", default-features = false, features = ["alloc"] } futures-util = { version = "0.3.17", default-features = false, features = ["alloc"] } -mio = { version = "0.8", features = ["os-poll", "net"] } +mio = { version = "1", features = ["os-poll", "net"] } socket2 = "0.5" tokio = { version = "1.23.1", features = ["sync"] } tracing = { version = "0.1.30", default-features = false, features = ["log"] } diff --git a/actix-server/src/socket.rs b/actix-server/src/socket.rs index 486c0d46..a39e4c49 100644 --- a/actix-server/src/socket.rs +++ b/actix-server/src/socket.rs @@ -126,7 +126,7 @@ pub(crate) enum SocketAddr { Unknown, Tcp(StdSocketAddr), #[cfg(unix)] - Uds(mio::net::SocketAddr), + Uds(std::os::unix::net::SocketAddr), } impl fmt::Display for SocketAddr {