mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
refactor to use exception helper factories
This commit is contained in:
@@ -78,8 +78,7 @@ pub fn detect_with_hints(
|
||||
for rotation in ROTATIONS {
|
||||
// for (int rotation : ROTATIONS) {
|
||||
let bitMatrix = applyRotation(originalMatrix, rotation)?;
|
||||
let barcodeCoordinates =
|
||||
detect(multiple, &bitMatrix).ok_or(Exceptions::NotFoundException(None))?;
|
||||
let barcodeCoordinates = detect(multiple, &bitMatrix).ok_or(Exceptions::notFoundEmpty())?;
|
||||
if !barcodeCoordinates.is_empty() {
|
||||
return Ok(PDF417DetectorRXingResult::with_rotation(
|
||||
bitMatrix.into_owned(),
|
||||
|
||||
Reference in New Issue
Block a user