diff --git a/src/uucore/src/lib/features/format/argument.rs b/src/uucore/src/lib/features/format/argument.rs index e1c466640..935f28826 100644 --- a/src/uucore/src/lib/features/format/argument.rs +++ b/src/uucore/src/lib/features/format/argument.rs @@ -159,7 +159,7 @@ impl<'a> FormatArguments<'a> { if bytes.len() > len { return Err(ExtendedParserError::PartialMatch( val, - String::from_utf8_lossy(&bytes[len..]).to_string(), + String::from_utf8_lossy(&bytes[len..]).into_owned(), )); }