From a8fdde03c97b199ec774634e0821f50c3ed07f79 Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Thu, 3 Nov 2022 10:41:04 -0500 Subject: [PATCH] most minimal pass --- src/datamatrix/encoder/minimal_encoder.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/datamatrix/encoder/minimal_encoder.rs b/src/datamatrix/encoder/minimal_encoder.rs index 6d63210..87ba877 100755 --- a/src/datamatrix/encoder/minimal_encoder.rs +++ b/src/datamatrix/encoder/minimal_encoder.rs @@ -98,7 +98,7 @@ pub fn isExtendedASCII(ch: char, fnc1: Option) -> bool { true }; is_fnc1 && ch as u8 >= 128 //&& ch as u8 <= 255 - // return ch != fnc1 && ch as u8 >= 128 && ch as u8 <= 255; + // return ch != fnc1 && ch as u8 >= 128 && ch as u8 <= 255; } fn isInC40Shift1Set(ch: char) -> bool { @@ -1231,7 +1231,7 @@ impl Edge { Mode::EDF => assert!(self.mode == Mode::EDF), //The rightmost EDIFACT edge always contains an unlatch character } - Ok(vec![0]) + Ok(Vec::new()) } // Important: The function does not return the length bytes (one or two) in case of B256 encoding @@ -1320,9 +1320,9 @@ impl RXingResult { randomizePostfixLength.push(bytesAL.len()); randomizeLengths.push(size); } - if Edge::getPreviousStartMode(current.previous.clone()) != current.getMode() { - Self::prepend(¤t.getLatchBytes()?, &mut bytesAL); - } + //if Edge::getPreviousStartMode(current.previous.clone()) != current.getMode() { + Self::prepend(¤t.getLatchBytes()?, &mut bytesAL); + //} size = 0; }