Skip to content

Commit

Permalink
net: fix test compilation failure (tokio-rs#5506)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn authored and amab8901 committed Feb 27, 2023
1 parent 60484a1 commit 0bdb3e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tokio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tokio/tests/net_named_pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 0bdb3e9

Please sign in to comment.