Bump async-io to v2.0.0 and async-channel to v2.0.0

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2023-10-28 19:04:54 -07:00 committed by GitHub
parent f733a83c22
commit 65cde366d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -320,7 +320,7 @@ cfg_if::cfg_if! {
}
/// Wrap a file descriptor into a non-blocking I/O type.
fn wrap<T: std::os::unix::io::AsRawFd>(io: T) -> io::Result<Async<T>> {
fn wrap<T: std::os::unix::io::AsFd>(io: T) -> io::Result<Async<T>> {
Async::new(io)
}
}