From e3f6fd3c3f6f9d80078789e79e2a80b22708461b Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Thu, 7 Sep 2023 20:48:26 +0100 Subject: [PATCH] truncate clippy fix. --- src/uu/truncate/src/truncate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/truncate/src/truncate.rs b/src/uu/truncate/src/truncate.rs index 3b1e9bd09..6e1c19fde 100644 --- a/src/uu/truncate/src/truncate.rs +++ b/src/uu/truncate/src/truncate.rs @@ -102,7 +102,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { .unwrap_or_default(); if files.is_empty() { - return Err(UUsageError::new(1, "missing file operand")); + Err(UUsageError::new(1, "missing file operand")) } else { let io_blocks = matches.get_flag(options::IO_BLOCKS); let no_create = matches.get_flag(options::NO_CREATE);