chore: clippy cleanup

This commit is contained in:
Henry Schimke
2024-01-13 14:02:02 -06:00
parent 693d1c25e4
commit 6a06762fd8
8 changed files with 41 additions and 50 deletions

View File

@@ -201,7 +201,7 @@ impl Version {
* See ISO 18004:2006 Annex E
*/
pub fn buildFunctionPattern(&self) -> Result<BitMatrix> {
if (self.isRMQR()) {
if self.isRMQR() {
let dimension = Version::DimensionOfVersionRMQR(self.versionNumber);
let mut bitMatrix = BitMatrix::new(dimension.x as u32, dimension.y as u32)?;
@@ -240,7 +240,7 @@ impl Version {
// Top right corner finder
bitMatrix.set((dimension.x - 2) as u32, 1);
if (dimension.y > 9) {
if dimension.y > 9 {
// Bottom left corner finder
bitMatrix.set(1, (dimension.y - 2) as u32);
}