diff --git a/src/uu/head/src/head.rs b/src/uu/head/src/head.rs index 67f73a397..c33ec693b 100644 --- a/src/uu/head/src/head.rs +++ b/src/uu/head/src/head.rs @@ -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, s.to_string())); + return Err(USimpleError::new(1, s)); } }; uu_head(&args)