rename helper methods

This commit is contained in:
Vukašin Stepanović
2023-02-15 12:52:59 +00:00
parent bfcdb397ad
commit 935519ced5
133 changed files with 858 additions and 1044 deletions

View File

@@ -53,7 +53,7 @@ impl<'a> MultiDetector<'_> {
let infos = finder.findMulti(hints)?;
if infos.is_empty() {
return Err(Exceptions::notFoundEmpty());
return Err(Exceptions::notFound);
}
let mut result = Vec::new();

View File

@@ -93,7 +93,9 @@ impl<'a> MultiFinderPatternFinder<'_> {
if size < 3 {
// Couldn't find enough finder patterns
return Err(Exceptions::notFound("Couldn't find enough finder patterns"));
return Err(Exceptions::notFoundWith(
"Couldn't find enough finder patterns",
));
}
/*
@@ -210,7 +212,7 @@ impl<'a> MultiFinderPatternFinder<'_> {
if !results.is_empty() {
Ok(results)
} else {
Err(Exceptions::notFoundEmpty())
Err(Exceptions::notFound)
}
}

View File

@@ -111,7 +111,7 @@ impl MultipleBarcodeReader for QRCodeMultiReader {
// ignore and continue
continue;
} else {
return Err(output.err().unwrap_or(Exceptions::notFoundEmpty()));
return Err(output.err().unwrap_or(Exceptions::notFound));
}
}