1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

fix lint error

This commit is contained in:
Smicry 2021-10-21 00:13:28 +08:00
parent 2cbc2aa59b
commit 396fa7a9b4

View file

@ -444,7 +444,7 @@ fn uu_head(options: &HeadOptions) -> UResult<()> {
first = false; first = false;
} }
if error_count > 0 { if error_count > 0 {
Err(USimpleError::new(1, format!(""))) Err(USimpleError::new(1, ""))
} else { } else {
Ok(()) Ok(())
} }
@ -455,7 +455,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let args = match HeadOptions::get_from(args) { let args = match HeadOptions::get_from(args) {
Ok(o) => o, Ok(o) => o,
Err(s) => { Err(s) => {
return Err(USimpleError::new(1, format!("{}", s))); return Err(USimpleError::new(1, s.to_string()));
} }
}; };
uu_head(&args) uu_head(&args)