mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #6505 from Its-Just-Nans/fix-clippy-errors
Fix clippy errors
This commit is contained in:
commit
9c0f2f84ab
40 changed files with 1341 additions and 901 deletions
|
@ -273,7 +273,7 @@ fn test_date_set_mac_unavailable() {
|
|||
|
||||
#[test]
|
||||
#[cfg(all(unix, not(target_os = "macos")))]
|
||||
/// TODO: expected to fail currently; change to succeeds() when required.
|
||||
/// TODO: expected to fail currently; change to `succeeds()` when required.
|
||||
fn test_date_set_valid_2() {
|
||||
if geteuid() == 0 {
|
||||
let result = new_ucmd!()
|
||||
|
@ -298,10 +298,11 @@ fn test_date_for_invalid_file() {
|
|||
#[test]
|
||||
#[cfg(unix)]
|
||||
fn test_date_for_no_permission_file() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
const FILE: &str = "file-no-perm-1";
|
||||
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
||||
let file = std::fs::OpenOptions::new()
|
||||
.create(true)
|
||||
.truncate(true)
|
||||
|
@ -338,7 +339,7 @@ fn test_date_for_file() {
|
|||
|
||||
#[test]
|
||||
#[cfg(all(unix, not(target_os = "macos")))]
|
||||
/// TODO: expected to fail currently; change to succeeds() when required.
|
||||
/// TODO: expected to fail currently; change to `succeeds()` when required.
|
||||
fn test_date_set_valid_3() {
|
||||
if geteuid() == 0 {
|
||||
let result = new_ucmd!()
|
||||
|
@ -352,7 +353,7 @@ fn test_date_set_valid_3() {
|
|||
|
||||
#[test]
|
||||
#[cfg(all(unix, not(target_os = "macos")))]
|
||||
/// TODO: expected to fail currently; change to succeeds() when required.
|
||||
/// TODO: expected to fail currently; change to `succeeds()` when required.
|
||||
fn test_date_set_valid_4() {
|
||||
if geteuid() == 0 {
|
||||
let result = new_ucmd!()
|
||||
|
@ -422,8 +423,8 @@ fn test_date_overflow() {
|
|||
|
||||
#[test]
|
||||
fn test_date_parse_from_format() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
const FILE: &str = "file-with-dates";
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
||||
at.write(
|
||||
FILE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue