mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
cargo fmt
This commit is contained in:
@@ -90,8 +90,7 @@ impl GridSampler for DefaultGridSampler {
|
|||||||
let mut x = 0;
|
let mut x = 0;
|
||||||
while x < max {
|
while x < max {
|
||||||
// for (int x = 0; x < max; x += 2) {
|
// for (int x = 0; x < max; x += 2) {
|
||||||
if points[x] as u32 >= image.getWidth()
|
if points[x] as u32 >= image.getWidth() || points[x + 1] as u32 >= image.getHeight()
|
||||||
|| points[x + 1] as u32 >= image.getHeight()
|
|
||||||
{
|
{
|
||||||
return Err(Exceptions::NotFoundException(Some(
|
return Err(Exceptions::NotFoundException(Some(
|
||||||
"index out of bounds, see documentation in file for explanation".to_owned(),
|
"index out of bounds, see documentation in file for explanation".to_owned(),
|
||||||
|
|||||||
Reference in New Issue
Block a user