remove .to_owned() calls on &str in exceptions

This commit is contained in:
Vukašin Stepanović
2023-02-15 11:03:27 +00:00
parent 722ce78fd0
commit 528ddea41c
47 changed files with 107 additions and 167 deletions

View File

@@ -457,7 +457,7 @@ impl BitMatrixParser {
if bitMatrix.getHeight() != symbolSizeRows {
return Err(Exceptions::illegalArgument(
"Dimension of bitMatrix must match the version size".to_owned(),
"Dimension of bitMatrix must match the version size",
));
}

View File

@@ -279,7 +279,7 @@ fn decodeAsciiSegment(
// Must be first ISO 16022:2006 5.6.1
{
return Err(Exceptions::format(
"structured append tag must be first code word".to_owned(),
"structured append tag must be first code word",
));
}
parse_structured_append(bits, &mut sai)?;