1
Fork 0
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:
Sam Caldwell 2022-01-31 22:25:59 -07:00
parent cd1b5c5748
commit 6f24166c63

View file

@ -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)