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:
parent
76fedf60ce
commit
9bb725cefc
5 changed files with 7 additions and 6 deletions
|
@ -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(), "");
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue