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

@@ -41,8 +41,7 @@ impl TryFrom<&String> for Compaction {
}
}
Err(Exceptions::FormatException(Some(format!(
"Compaction must be 0-3 (inclusivie). Found: {}",
value
"Compaction must be 0-3 (inclusivie). Found: {value}"
))))
}
}

View File

@@ -247,7 +247,7 @@ impl PDF417 {
//4. step: low-level encoding
let mut barcode_matrix = BarcodeMatrix::new(rows as usize, cols as usize);
self.encodeLowLevel(
&format!("{}{}", dataCodewords, ec),
&format!("{dataCodewords}{ec}"),
cols,
rows,
errorCorrectionLevel,

View File

@@ -806,8 +806,7 @@ fn encodingECI(eci: i32, sb: &mut String) -> Result<(), Exceptions> {
sb.push(char::from_u32((810900 - eci) as u32).unwrap());
} else {
return Err(Exceptions::WriterException(Some(format!(
"ECI number not in valid range from 0..811799, but was {}",
eci
"ECI number not in valid range from 0..811799, but was {eci}"
))));
}
Ok(())