fairly major reorganization and clippy cleanup

This commit is contained in:
Henry
2023-01-10 15:28:36 -06:00
parent 59183a5383
commit a32de48f34
42 changed files with 199 additions and 166 deletions

View File

@@ -209,7 +209,6 @@ impl BitMatrix {
#[inline(always)]
fn get_offset(&self, y: u32, x: u32) -> usize {
y as usize * self.row_size + (x as usize / 32)
}

View File

@@ -143,6 +143,7 @@ impl<'a> MonochromeRectangleDetector<'_> {
* @return a {@link RXingResultPoint} encapsulating the corner that was found
* @throws NotFoundException if such a point cannot be found
*/
#[allow(clippy::too_many_arguments)]
fn findCornerFromCenter(
&self,
centerX: i32,

View File

@@ -86,6 +86,7 @@ pub trait GridSampler {
* @throws NotFoundException if image can't be sampled, for example, if the transformation defined
* by the given points is invalid or results in sampling outside the image boundaries
*/
#[allow(clippy::too_many_arguments)]
fn sample_grid_detailed(
&self,
image: &BitMatrix,

View File

@@ -36,6 +36,7 @@ pub struct PerspectiveTransform {
}
impl PerspectiveTransform {
#[allow(clippy::too_many_arguments)]
fn new(
a11: f32,
a21: f32,
@@ -60,6 +61,7 @@ impl PerspectiveTransform {
}
}
#[allow(clippy::too_many_arguments)]
pub fn quadrilateralToQuadrilateral(
x0: f32,
y0: f32,
@@ -118,6 +120,7 @@ impl PerspectiveTransform {
}
}
#[allow(clippy::too_many_arguments)]
pub fn squareToQuadrilateral(
x0: f32,
y0: f32,
@@ -165,6 +168,7 @@ impl PerspectiveTransform {
}
}
#[allow(clippy::too_many_arguments)]
pub fn quadrilateralToSquare(
x0: f32,
y0: f32,