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:
parent
f733a83c22
commit
65cde366d4
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue