mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
fairly major reorganization and clippy cleanup
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user