From 396fa7a9b4037166dae1e63ca6007f8184694ecb Mon Sep 17 00:00:00 2001 From: Smicry Date: Thu, 21 Oct 2021 00:13:28 +0800 Subject: [PATCH] fix lint error --- src/uu/head/src/head.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/head/src/head.rs b/src/uu/head/src/head.rs index 93404876d..67f73a397 100644 --- a/src/uu/head/src/head.rs +++ b/src/uu/head/src/head.rs @@ -444,7 +444,7 @@ fn uu_head(options: &HeadOptions) -> UResult<()> { first = false; } if error_count > 0 { - Err(USimpleError::new(1, format!(""))) + Err(USimpleError::new(1, "")) } else { Ok(()) } @@ -455,7 +455,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { let args = match HeadOptions::get_from(args) { Ok(o) => o, Err(s) => { - return Err(USimpleError::new(1, format!("{}", s))); + return Err(USimpleError::new(1, s.to_string())); } }; uu_head(&args)