mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 04:42:35 +00:00
remove .to_owned() calls on &str in exceptions
This commit is contained in:
@@ -51,7 +51,7 @@ pub fn buildBitArrayFromString(data: &str) -> Result<BitArray, Exceptions> {
|
||||
if i % 9 == 0 {
|
||||
// spaces
|
||||
if dotsAndXs.chars().nth(i).ok_or(Exceptions::parseEmpty())? != ' ' {
|
||||
return Err(Exceptions::illegalState("space expected".to_owned()));
|
||||
return Err(Exceptions::illegalState("space expected"));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user