cargo clippy --fix

This commit is contained in:
Henry Schimke
2023-01-27 15:24:24 -06:00
parent 58e6827e89
commit 42d40de755
86 changed files with 196 additions and 335 deletions

View File

@@ -652,7 +652,7 @@ impl Display for DetectionRXingResult {
// try (Formatter formatter = new Formatter()) {
for codewordsRow in 0..rowIndicatorColumn.as_ref().unwrap().getCodewords().len() {
// for (int codewordsRow = 0; codewordsRow < rowIndicatorColumn.getCodewords().length; codewordsRow++) {
write!(f, "CW {0:3}", codewordsRow)?;
write!(f, "CW {codewordsRow:3}")?;
// formatter.format("CW %3d:", codewordsRow);
for barcodeColumn in 0..self.barcodeColumnCount + 2 {
// for (int barcodeColumn = 0; barcodeColumn < barcodeColumnCount + 2; barcodeColumn++) {

View File

@@ -133,7 +133,7 @@ impl Display for DetectionRXingResultColumn {
for codeword in &self.codewords {
// for (Codeword codeword : codewords) {
if codeword.is_none() {
writeln!(f, "{:3}: | ", row)?;
writeln!(f, "{row:3}: | ")?;
row += 1;
continue;
}