mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
remove .to_owned() calls on &str in exceptions
This commit is contained in:
@@ -249,7 +249,7 @@ fn encodeFast(contents: &str, forcedCodeSet: i32) -> Result<Vec<bool>, Exception
|
||||
if position + 1 == length {
|
||||
// this is the last character, but the encoding is C, which always encodes two characers
|
||||
return Err(Exceptions::illegalArgument(
|
||||
"Bad number of characters for digit only encoding.".to_owned(),
|
||||
"Bad number of characters for digit only encoding.",
|
||||
));
|
||||
}
|
||||
let s: String = contents
|
||||
|
||||
Reference in New Issue
Block a user