mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Fix some trivial clippy warnings
This commit is contained in:
parent
47e61f064c
commit
efa361dd7c
5 changed files with 11 additions and 11 deletions
|
@ -118,9 +118,10 @@ mod linux_only {
|
|||
use std::os::unix::io::FromRawFd;
|
||||
|
||||
let mut fds: [c_int; 2] = [0, 0];
|
||||
if unsafe { libc::pipe(&mut fds as *mut c_int) } != 0 {
|
||||
panic!("Failed to create pipe");
|
||||
}
|
||||
assert!(
|
||||
!(unsafe { libc::pipe(&mut fds as *mut c_int) } != 0),
|
||||
"Failed to create pipe"
|
||||
);
|
||||
|
||||
// Drop the read end of the pipe
|
||||
let _ = unsafe { File::from_raw_fd(fds[0]) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue