mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
uucore: format: Use .into_owned() for from_utf8_lossy()
Suggested by Gemini and I think that's not a bad idea.
This commit is contained in:
committed by
Dorian Péron
parent
668cefb2e4
commit
ccad817415
@@ -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(),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user