mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 11:36:16 +00:00
clippy: fix warnings introduced by Rust 1.71.0
This commit is contained in:
parent
0ee92981c4
commit
5d03d2d9d4
9 changed files with 118 additions and 123 deletions
|
@ -1337,7 +1337,7 @@ fn test_cp_preserve_all_context_fails_on_non_selinux() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(target_os = "android"))]
|
||||
#[cfg(target_os = "android")]
|
||||
fn test_cp_preserve_xattr_fails_on_android() {
|
||||
// Because of the SELinux extended attributes used on Android, trying to copy extended
|
||||
// attributes has to fail in this case, since we specify `--preserve=xattr` and this puts it
|
||||
|
@ -2768,7 +2768,7 @@ fn test_same_file_force() {
|
|||
}
|
||||
|
||||
/// Test that copying file to itself with forced backup succeeds.
|
||||
#[cfg(all(not(windows)))]
|
||||
#[cfg(not(windows))]
|
||||
#[test]
|
||||
fn test_same_file_force_backup() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
|
|
@ -178,7 +178,7 @@ fn test_char() {
|
|||
DEV_FORMAT_STR,
|
||||
#[cfg(target_os = "linux")]
|
||||
"/dev/pts/ptmx",
|
||||
#[cfg(any(target_vendor = "apple"))]
|
||||
#[cfg(target_vendor = "apple")]
|
||||
"%a %A %b %B %d %D %f %F %g %G %h %i %m %n %o %s (/%T) %u %U %W %X %y %Y %z %Z",
|
||||
#[cfg(any(target_os = "android", target_vendor = "apple"))]
|
||||
"/dev/ptmx",
|
||||
|
@ -198,7 +198,7 @@ fn test_date() {
|
|||
"%z",
|
||||
#[cfg(target_os = "linux")]
|
||||
"/bin/sh",
|
||||
#[cfg(any(target_vendor = "apple"))]
|
||||
#[cfg(target_vendor = "apple")]
|
||||
"%z",
|
||||
#[cfg(any(target_os = "android", target_vendor = "apple"))]
|
||||
"/bin/sh",
|
||||
|
@ -213,7 +213,7 @@ fn test_date() {
|
|||
"%z",
|
||||
#[cfg(target_os = "linux")]
|
||||
"/dev/ptmx",
|
||||
#[cfg(any(target_vendor = "apple"))]
|
||||
#[cfg(target_vendor = "apple")]
|
||||
"%z",
|
||||
#[cfg(any(target_os = "android", target_vendor = "apple"))]
|
||||
"/dev/ptmx",
|
||||
|
|
|
@ -145,7 +145,7 @@ fn test_stdin_redirect_offset() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(all(not(target_vendor = "apple")))] // FIXME: for currently not working platforms
|
||||
#[cfg(not(target_vendor = "apple"))] // FIXME: for currently not working platforms
|
||||
fn test_stdin_redirect_offset2() {
|
||||
// like test_stdin_redirect_offset but with multiple files
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue