mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
remove .to_owned() calls on &str in exceptions
This commit is contained in:
@@ -45,9 +45,7 @@ impl OneDimensionalCodeWriter for EAN13Writer {
|
||||
}
|
||||
13 => {
|
||||
if !reader.checkStandardUPCEANChecksum(&contents)? {
|
||||
return Err(Exceptions::illegalArgument(
|
||||
"Contents do not pass checksum".to_owned(),
|
||||
));
|
||||
return Err(Exceptions::illegalArgument("Contents do not pass checksum"));
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
|
||||
Reference in New Issue
Block a user