We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa42a02 commit ee95ae2Copy full SHA for ee95ae2
src/uu/cp/src/platform/linux.rs
@@ -62,12 +62,10 @@ where
62
let dst_file = File::create(&dest)?;
63
let src_fd = src_file.as_raw_fd();
64
let dst_fd = dst_file.as_raw_fd();
65
- // Using .try_into().unwrap() is required as glibc, musl & android all have different type for ioctl()
66
- #[allow(clippy::unnecessary_fallible_conversions)]
67
let result = unsafe {
68
libc::ioctl(
69
dst_fd,
70
- linux_raw_sys::ioctl::FICLONE.try_into().unwrap(),
+ linux_raw_sys::ioctl::FICLONE as libc::Ioctl,
71
src_fd,
72
)
73
};
0 commit comments