mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
fix potential unwrap on none
This commit is contained in:
@@ -98,10 +98,10 @@ pub trait OneDReader: Reader {
|
||||
if attempt == 1 {
|
||||
// trying again?
|
||||
row.to_mut().reverse(); // reverse the row and continue
|
||||
// This means we will only ever draw result points *once* in the life of this method
|
||||
// since we want to avoid drawing the wrong points after flipping the row, and,
|
||||
// don't want to clutter with noise from every single row scan -- just the scans
|
||||
// that start on the center line.
|
||||
// This means we will only ever draw result points *once* in the life of this method
|
||||
// since we want to avoid drawing the wrong points after flipping the row, and,
|
||||
// don't want to clutter with noise from every single row scan -- just the scans
|
||||
// that start on the center line.
|
||||
if hints.contains_key(&DecodeHintType::NEED_RESULT_POINT_CALLBACK) {
|
||||
// let newHints = HashMap::new();
|
||||
// newHints.putAll(hints);
|
||||
|
||||
Reference in New Issue
Block a user