mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tee: fix warning from ref_as_ptr lint in test
This commit is contained in:
parent
412d4f4f15
commit
3281d3ef55
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ mod linux_only {
|
||||||
|
|
||||||
let mut fds: [c_int; 2] = [0, 0];
|
let mut fds: [c_int; 2] = [0, 0];
|
||||||
assert!(
|
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"
|
"Failed to create pipe"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue