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

@@ -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 {