mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
refactor to use common result type
This commit is contained in:
@@ -571,7 +571,7 @@ impl<T: MultipleBarcodeReader + Reader> PDF417MultiImageSpanAbstractBlackBoxTest
|
||||
expected_text: &str,
|
||||
expected_metadata: &HashMap<RXingResultMetadataType, RXingResultMetadataValue>,
|
||||
try_harder: bool,
|
||||
) -> Result<bool, rxing::Exceptions> {
|
||||
) -> Result<bool> {
|
||||
let suffix = format!(
|
||||
" ({}rotation: {})",
|
||||
if try_harder { "try harder, " } else { "" },
|
||||
@@ -756,7 +756,7 @@ impl<T: MultipleBarcodeReader + Reader> PDF417MultiImageSpanAbstractBlackBoxTest
|
||||
source: &mut BinaryBitmap,
|
||||
try_harder: bool,
|
||||
barcode_reader: &mut T,
|
||||
) -> Result<Vec<RXingResult>, Exceptions> {
|
||||
) -> Result<Vec<RXingResult>> {
|
||||
let mut hints = HashMap::new(); //new EnumMap<>(DecodeHintType.class);
|
||||
if try_harder {
|
||||
hints.insert(DecodeHintType::TRY_HARDER, DecodeHintValue::TryHarder(true));
|
||||
|
||||
Reference in New Issue
Block a user