From 754a1fb03c7456682a652f66eba6d76cfa1c6ad8 Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Tue, 23 Jul 2024 14:26:07 +0200 Subject: [PATCH] deps: update to Mio v1 (#6635) --- tokio/Cargo.toml | 2 +- tokio/src/net/unix/socketaddr.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 4101d250df1..de566d02efc 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -92,7 +92,7 @@ pin-project-lite = "0.2.11" # Everything else is optional... bytes = { version = "1.0.0", optional = true } -mio = { version = "0.8.9", optional = true, default-features = false } +mio = { version = "1.0.1", optional = true, default-features = false } parking_lot = { version = "0.12.0", optional = true } [target.'cfg(not(target_family = "wasm"))'.dependencies] diff --git a/tokio/src/net/unix/socketaddr.rs b/tokio/src/net/unix/socketaddr.rs index 48f7b96b8c2..62ed4294d45 100644 --- a/tokio/src/net/unix/socketaddr.rs +++ b/tokio/src/net/unix/socketaddr.rs @@ -2,7 +2,7 @@ use std::fmt; use std::path::Path; /// An address associated with a Tokio Unix socket. -pub struct SocketAddr(pub(super) mio::net::SocketAddr); +pub struct SocketAddr(pub(super) std::os::unix::net::SocketAddr); impl SocketAddr { /// Returns `true` if the address is unnamed.