cargo clippy --fix

This commit is contained in:
Henry Schimke
2023-01-10 14:36:11 -06:00
parent 4f1bceee66
commit 59183a5383
5 changed files with 12 additions and 12 deletions

View File

@@ -113,7 +113,7 @@ X X X X X X X X X X X X X X
" ",
)
.expect("Bitmatrix should init");
let r = AztecDetectorRXingResult::new(matrix, NO_POINTS.clone(), false, 30, 2);
let r = AztecDetectorRXingResult::new(matrix, NO_POINTS, false, 30, 2);
let result = decoder::decode(&r).expect("decoder should init");
assert_eq!("88888TTTTTTTTTTTTTTTTTTTTTTTTTTTTTT", result.getText());
assert_eq!(
@@ -173,7 +173,7 @@ X X X X X X X X ",
" ",
)
.expect("string parse success");
let r = AztecDetectorRXingResult::new(matrix, NO_POINTS.clone(), false, 15, 1);
let r = AztecDetectorRXingResult::new(matrix, NO_POINTS, false, 15, 1);
let result = decoder::decode(&r).expect("decode success");
assert_eq!("Français", result.getText());
}
@@ -214,7 +214,7 @@ X X . X . X . . . X . X . . . . X X . X . . X X . . . ",
". ",
)
.expect("parse string failed");
let r = AztecDetectorRXingResult::new(matrix, NO_POINTS.clone(), true, 16, 4);
let r = AztecDetectorRXingResult::new(matrix, NO_POINTS, true, 16, 4);
assert!(decoder::decode(&r).is_ok());
}
@@ -254,7 +254,7 @@ X X . . . X X . . X . X . . . . X X . X . . X . X . X ",
". ",
)
.expect("String Parse failed");
let r = AztecDetectorRXingResult::new(matrix, NO_POINTS.clone(), true, 16, 4);
let r = AztecDetectorRXingResult::new(matrix, NO_POINTS, true, 16, 4);
assert!(decoder::decode(&r).is_ok());
}