1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-15 03:26:18 +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

@ -4139,7 +4139,7 @@ fn test_ls_hyperlink_dirs() {
assert!(result
.stdout_str()
.lines()
.nth(0)
.next()
.unwrap()
.contains(&format!("{path}{separator}{dir_a}\x07{dir_a}\x1b]8;;\x07:")));
assert_eq!(result.stdout_str().lines().nth(1).unwrap(), "");

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);
}