updated cargo fmt

This commit is contained in:
Henry Schimke
2023-10-28 11:04:14 -05:00
parent 4c9ec95d00
commit 5ea03cc066
24 changed files with 122 additions and 64 deletions

View File

@@ -267,7 +267,7 @@ pub fn decodeMacroBlock(
MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM => {
let mut checksum = ECIStringBuilder::default();
codeIndex = numericCompaction(codewords, codeIndex + 1, &mut checksum)?;
let Ok(parsed_checksum ) = checksum.to_string().parse() else {
let Ok(parsed_checksum) = checksum.to_string().parse() else {
return Err(Exceptions::FORMAT);
};
resultMetadata.setChecksum(parsed_checksum);
@@ -275,7 +275,7 @@ pub fn decodeMacroBlock(
MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE => {
let mut fileSize = ECIStringBuilder::default();
codeIndex = numericCompaction(codewords, codeIndex + 1, &mut fileSize)?;
let Ok(parsed_file_size)= fileSize.to_string().parse() else {
let Ok(parsed_file_size) = fileSize.to_string().parse() else {
return Err(Exceptions::FORMAT);
};
resultMetadata.setFileSize(parsed_file_size);