From 7c5ec23e0e4fbb6397d50d6a7204a036a51a15b1 Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Sat, 14 Jan 2023 12:01:52 -0600 Subject: [PATCH] cargo fmt --- src/common/default_grid_sampler.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/default_grid_sampler.rs b/src/common/default_grid_sampler.rs index 4c89443..9ddc1a3 100644 --- a/src/common/default_grid_sampler.rs +++ b/src/common/default_grid_sampler.rs @@ -90,8 +90,7 @@ impl GridSampler for DefaultGridSampler { let mut x = 0; while x < max { // for (int x = 0; x < max; x += 2) { - if points[x] as u32 >= image.getWidth() - || points[x + 1] as u32 >= image.getHeight() + if points[x] as u32 >= image.getWidth() || points[x + 1] as u32 >= image.getHeight() { return Err(Exceptions::NotFoundException(Some( "index out of bounds, see documentation in file for explanation".to_owned(),