mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 20:32:34 +00:00
Merge branch 'main' into thiserror
# Conflicts: # src/aztec/decoder.rs # src/datamatrix/decoder/decoded_bit_stream_parser.rs
This commit is contained in:
@@ -162,7 +162,7 @@ fn get_encoded_data(corrected_bits: &[bool]) -> Result<String> {
|
||||
result.push_str(
|
||||
&encdr
|
||||
.decode(&decoded_bytes, encoding::DecoderTrap::Strict)
|
||||
.map_err(|a| Exceptions::illegal_state_with(a))?,
|
||||
.map_err(Exceptions::illegal_state_with)?,
|
||||
);
|
||||
|
||||
decoded_bytes.clear();
|
||||
@@ -342,7 +342,7 @@ fn correct_bits(
|
||||
}
|
||||
let mut offset = rawbits.len() % codeword_size;
|
||||
|
||||
let mut data_words = vec![0i32; num_codewords];
|
||||
let mut data_words = vec![0; num_codewords];
|
||||
for word in data_words.iter_mut().take(num_codewords) {
|
||||
// for i in 0..num_codewords {
|
||||
// for (int i = 0; i < numCodewords; i++, offset += codewordSize) {
|
||||
|
||||
Reference in New Issue
Block a user