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:
parent
2cbc2aa59b
commit
396fa7a9b4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue