1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tee: fix warning from ref_as_ptr lint in test

This commit is contained in:
Daniel Hofstetter 2024-11-18 09:45:44 +01:00
parent 412d4f4f15
commit 3281d3ef55

View file

@ -172,7 +172,7 @@ mod linux_only {
let mut fds: [c_int; 2] = [0, 0];
assert!(
(unsafe { libc::pipe(&mut fds as *mut c_int) } == 0),
(unsafe { libc::pipe(std::ptr::from_mut::<c_int>(&mut fds[0])) } == 0),
"Failed to create pipe"
);