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