mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
remove .to_owned() calls on &str in exceptions
This commit is contained in:
@@ -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",
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user