mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
[truncate] handle unused_must_use warning
This commit is contained in:
parent
cd1b5c5748
commit
6f24166c63
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
|||
.after_help(&long_usage[..])
|
||||
.try_get_matches_from(args)
|
||||
.unwrap_or_else(|e| {
|
||||
e.print();
|
||||
e.print().expect("Error writing clap::Error");
|
||||
match e.kind {
|
||||
clap::ErrorKind::DisplayHelp | clap::ErrorKind::DisplayVersion => {
|
||||
std::process::exit(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue