fix small clippy issues

This commit is contained in:
Henry Schimke
2023-02-01 13:37:53 -06:00
parent 7eeaaeba59
commit e2b79819e6
2 changed files with 2 additions and 1 deletions

View File

@@ -104,6 +104,7 @@ impl DecoderRXingResult {
)
}
#[allow(clippy::too_many_arguments)]
pub fn with_all(
rawBytes: Vec<u8>,
text: String,

View File

@@ -242,7 +242,7 @@ fn decodeAsciiSegment(
return Ok(Mode::ASCII_ENCODE);
}
129 => return Ok(Mode::PAD_ENCODE), // Pad
129..=229 => {
130..=229 => {
// 2-digit data 00-99 (Numeric Value + 130)
let value = oneByte - 130;
if value < 10 {