mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
cargo fmt
This commit is contained in:
@@ -57,9 +57,9 @@ impl DataBlock {
|
||||
|
||||
// First count the total number of data blocks
|
||||
let ecBlockArray = ecBlocks.getECBlocks();
|
||||
let totalBlocks = ecBlockArray.iter().fold(0, |acc, ecBlock| {
|
||||
acc + ecBlock.getCount() as usize
|
||||
});
|
||||
let totalBlocks = ecBlockArray
|
||||
.iter()
|
||||
.fold(0, |acc, ecBlock| acc + ecBlock.getCount() as usize);
|
||||
|
||||
// Now establish DataBlocks of the appropriate size and number of data codewords
|
||||
let mut result = Vec::with_capacity(totalBlocks);
|
||||
|
||||
Reference in New Issue
Block a user