net: fix test compilation failure (#5506)

This commit is contained in:
Alice Ryhl 2023-02-26 20:06:08 +01:00 committed by GitHub
parent 2298679af4
commit 0a50cb3baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -417,7 +417,7 @@ fn num_instances(pipe_name: impl AsRef<str>) -> io::Result<u32> {
let status = unsafe {
ntioapi::NtQueryDirectoryFile(
root.as_raw_handle(),
root.as_raw_handle().cast(),
std::ptr::null_mut(),
None,
std::ptr::null_mut(),