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

clippy: fix warnings introduced by Rust 1.75

This commit is contained in:
Daniel Hofstetter 2023-12-28 17:44:23 +01:00
parent 76fedf60ce
commit 9bb725cefc
5 changed files with 7 additions and 6 deletions

View file

@ -696,7 +696,7 @@ fn test_file_owned_by_egid() {
if user_gid != file_gid {
let file_uid = metadata.uid();
let path = CString::new(at.plus("regular_file").as_os_str().as_bytes()).expect("bad path");
let r = unsafe { libc::chown(path.as_ptr().into(), file_uid, user_gid) };
let r = unsafe { libc::chown(path.as_ptr(), file_uid, user_gid) };
assert_ne!(r, -1);
}