fix: cargo fmt and restrict /dev/full tests to Linux

This commit is contained in:
Christopher Dryden
2026-02-12 20:48:05 +01:00
committed by Sylvestre Ledru
parent d15e762a90
commit dec633c0bd
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -510,9 +510,9 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
}
}
stdout.flush().map_err(|e| {
USimpleError::new(1, translate!("date-error-write", "error" => e))
})?;
stdout
.flush()
.map_err(|e| USimpleError::new(1, translate!("date-error-write", "error" => e)))?;
Ok(())
}
+1 -1
View File
@@ -729,7 +729,7 @@ fn test_read_error() {
}
#[test]
#[cfg(unix)]
#[cfg(target_os = "linux")]
fn test_comm_write_error_dev_full() {
use std::fs::OpenOptions;
let scene = TestScenario::new(util_name!());
+1 -1
View File
@@ -2068,7 +2068,7 @@ fn test_percent_percent_not_replaced() {
}
#[test]
#[cfg(unix)]
#[cfg(target_os = "linux")]
fn test_date_write_error_dev_full() {
use std::fs::OpenOptions;
let dev_full = OpenOptions::new().write(true).open("/dev/full").unwrap();