Skip to content

Commit 3281d3e

Browse files
committed
tee: fix warning from ref_as_ptr lint in test
1 parent 412d4f4 commit 3281d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/by-util/test_tee.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ mod linux_only {
172172

173173
let mut fds: [c_int; 2] = [0, 0];
174174
assert!(
175-
(unsafe { libc::pipe(&mut fds as *mut c_int) } == 0),
175+
(unsafe { libc::pipe(std::ptr::from_mut::<c_int>(&mut fds[0])) } == 0),
176176
"Failed to create pipe"
177177
);
178178

0 commit comments

Comments
 (0)