fix the clippy warning

This commit is contained in:
Sylvestre Ledru 2021-07-04 12:03:36 +02:00 committed by GitHub
parent 23f5f55560
commit 38c0880989
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
print!("{}", separator);
}
} else {
return Err(USimpleError::new(1, format!("missing operand")));
return Err(UUsageError::new(1, "missing operand".to_string()));
}
Ok(())