cleaned up many warnings

This commit is contained in:
Henry Schimke
2022-10-17 10:50:18 -05:00
parent 8c102cab8f
commit 111fe47566
71 changed files with 2553 additions and 2528 deletions

View File

@@ -76,7 +76,7 @@ pub fn sum(array: &[i32]) -> i32 {
mod tests {
use crate::common::detector::MathUtils;
static EPSILON: f32 = 1.0E-8f32;
// static EPSILON: f32 = 1.0E-8f32;
#[test]
fn testRound() {

View File

@@ -1,6 +1,4 @@
pub mod MathUtils;
use crate::common::BitMatrix;
use crate::{Exceptions, RXingResultPoint, ResultPoint};
mod monochrome_rectangle_detector;
pub use monochrome_rectangle_detector::*;

View File

@@ -245,7 +245,7 @@ impl MonochromeRectangleDetector {
// Scan left/up first
let mut start = center;
while (start >= minDim) {
while start >= minDim {
if if horizontal {
self.image.get(start as u32, fixedDimension as u32)
} else {
@@ -275,7 +275,7 @@ impl MonochromeRectangleDetector {
// Then try right/down
let mut end = center;
while (end < maxDim) {
while end < maxDim {
if if horizontal {
self.image.get(end as u32, fixedDimension as u32)
} else {