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:
@@ -33,7 +33,7 @@ impl OneDimensionalCodeWriter for ITFWriter {
|
||||
let length = contents.chars().count();
|
||||
if length % 2 != 0 {
|
||||
return Err(Exceptions::illegalArgument(
|
||||
"The length of the input should be even".to_owned(),
|
||||
"The length of the input should be even",
|
||||
));
|
||||
}
|
||||
if length > 80 {
|
||||
|
||||
Reference in New Issue
Block a user