mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 20:32:34 +00:00
Use thiserror for error handling with less boilerplate
This commit is contained in:
@@ -165,7 +165,7 @@ impl DefaultPlacement {
|
||||
.codewords
|
||||
.chars()
|
||||
.nth(pos)
|
||||
.ok_or(Exceptions::indexOutOfBounds)? as u32;
|
||||
.ok_or(Exceptions::INDEX_OUT_OF_BOUNDS)? as u32;
|
||||
v &= 1 << (8 - bit);
|
||||
self.setBit(col as usize, row as usize, v != 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user