mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
cleaned up many warnings
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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::*;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user