Skip to content

Commit 0a50cb3

Browse files
authored
net: fix test compilation failure (#5506)
1 parent 2298679 commit 0a50cb3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tokio/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ tokio-test = { version = "0.4.0", path = "../tokio-test" }
143143
tokio-stream = { version = "0.1", path = "../tokio-stream" }
144144
futures = { version = "0.3.0", features = ["async-await"] }
145145
mockall = "0.11.1"
146-
tempfile = "3.1.0"
147146
async-stream = "0.3"
148147

149148
[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dev-dependencies]
150149
socket2 = "0.4"
150+
tempfile = "3.1.0"
151151

152152
[target.'cfg(not(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown")))'.dev-dependencies]
153153
rand = "0.8.0"

tokio/tests/net_named_pipe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ fn num_instances(pipe_name: impl AsRef<str>) -> io::Result<u32> {
417417

418418
let status = unsafe {
419419
ntioapi::NtQueryDirectoryFile(
420-
root.as_raw_handle(),
420+
root.as_raw_handle().cast(),
421421
std::ptr::null_mut(),
422422
None,
423423
std::ptr::null_mut(),

0 commit comments

Comments
 (0)