chore: clippy cleanup

This commit is contained in:
Henry Schimke
2024-01-14 17:16:10 -06:00
parent 30f9ed8976
commit 4136a310aa

View File

@@ -1317,7 +1317,7 @@ pub fn SampleRMQR(image: &BitMatrix, fp: ConcentricPattern) -> Result<QRCodeDete
if let Some(spQuad) = FindConcentricPatternCorners(image, found, fp.size / 2, 1) { if let Some(spQuad) = FindConcentricPatternCorners(image, found, fp.size / 2, 1) {
// if (auto spQuad = FindConcentricPatternCorners(image, *found, fp.size / 2, 1)) { // if (auto spQuad = FindConcentricPatternCorners(image, *found, fp.size / 2, 1)) {
let mut dest = intersectQuads(&fpQuad, &spQuad)?; let mut dest = intersectQuads(&fpQuad, &spQuad)?;
if (dim.y <= 9) { if dim.y <= 9 {
bestPT = PerspectiveTransform::quadrilateralToQuadrilateral( bestPT = PerspectiveTransform::quadrilateralToQuadrilateral(
Quadrilateral::from([ Quadrilateral::from([
point(6.5, 0.5), point(6.5, 0.5),