diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index 0e96ccb7cd7..3087c3318e5 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -143,11 +143,11 @@ tokio-test = { version = "0.4.0", path = "../tokio-test" } tokio-stream = { version = "0.1", path = "../tokio-stream" } futures = { version = "0.3.0", features = ["async-await"] } mockall = "0.11.1" -tempfile = "3.1.0" async-stream = "0.3" [target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dev-dependencies] socket2 = "0.4" +tempfile = "3.1.0" [target.'cfg(not(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown")))'.dev-dependencies] rand = "0.8.0" diff --git a/tokio/tests/net_named_pipe.rs b/tokio/tests/net_named_pipe.rs index 3ddc4c8a9bf..02c8a0919f5 100644 --- a/tokio/tests/net_named_pipe.rs +++ b/tokio/tests/net_named_pipe.rs @@ -417,7 +417,7 @@ fn num_instances(pipe_name: impl AsRef) -> io::Result { let status = unsafe { ntioapi::NtQueryDirectoryFile( - root.as_raw_handle(), + root.as_raw_handle().cast(), std::ptr::null_mut(), None, std::ptr::null_mut(),