From 65cde366d4b51ad1ba63146fe358a5d502b370c2 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Sat, 28 Oct 2023 19:04:54 -0700 Subject: [PATCH] Bump async-io to v2.0.0 and async-channel to v2.0.0 Signed-off-by: John Nunley --- Cargo.toml | 6 +++--- src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 65845f1..13d3d4d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,12 +21,12 @@ event-listener = "3.0.0" futures-lite = "1.11.0" [target.'cfg(unix)'.dependencies] -async-io = "1.8" +async-io = "2.1.0" async-signal = "0.2.3" rustix = { version = "0.38", default-features = false, features = ["std", "fs"] } [target.'cfg(windows)'.dependencies] -async-channel = "1.9.0" +async-channel = "2.0.0" blocking = "1.0.0" [target.'cfg(windows)'.dependencies.windows-sys] @@ -39,4 +39,4 @@ features = [ [dev-dependencies] async-executor = "1.5.1" -async-io = "1.8" +async-io = "2.1.0" diff --git a/src/lib.rs b/src/lib.rs index 19b094a..4804a1a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -320,7 +320,7 @@ cfg_if::cfg_if! { } /// Wrap a file descriptor into a non-blocking I/O type. - fn wrap(io: T) -> io::Result> { + fn wrap(io: T) -> io::Result> { Async::new(io) } }