diff --git a/src/aztec/decoder.rs b/src/aztec/decoder.rs index 0dc0be6..ca10c64 100644 --- a/src/aztec/decoder.rs +++ b/src/aztec/decoder.rs @@ -162,7 +162,7 @@ fn get_encoded_data(corrected_bits: &[bool]) -> Result { result.push_str( &encdr .decode(&decoded_bytes, encoding::DecoderTrap::Strict) - .map_err(|a| Exceptions::illegalStateWith(a))?, + .map_err(Exceptions::illegalStateWith)?, ); decoded_bytes.clear(); diff --git a/src/datamatrix/decoder/decoded_bit_stream_parser.rs b/src/datamatrix/decoder/decoded_bit_stream_parser.rs index 455e313..da7876c 100644 --- a/src/datamatrix/decoder/decoded_bit_stream_parser.rs +++ b/src/datamatrix/decoder/decoded_bit_stream_parser.rs @@ -732,7 +732,7 @@ fn decodeBase256Segment( result.append_string( &encoding::all::ISO_8859_1 .decode(&bytes, encoding::DecoderTrap::Strict) - .map_err(|e| Exceptions::parseWith(e))?, + .map_err(Exceptions::parseWith)?, ); byteSegments.push(bytes); diff --git a/src/maxicode/detector.rs b/src/maxicode/detector.rs index 00aabed..0ef8aeb 100644 --- a/src/maxicode/detector.rs +++ b/src/maxicode/detector.rs @@ -340,8 +340,8 @@ pub fn detect(image: &BitMatrix, try_harder: bool) -> Result Result &Vec { - &&self.resultPoints + &self.resultPoints } /** Currently necessary because the external OneDReader proc macro uses it. */