fix potential unwrap on none

This commit is contained in:
Henry Schimke
2023-01-06 10:56:00 -06:00
parent 7996f42c64
commit 6d41475786
5 changed files with 24 additions and 19 deletions

View File

@@ -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);