mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tee: fix warning from ref_as_ptr lint in test
This commit is contained in:
@@ -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"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user