mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
Use thiserror for error handling with less boilerplate
This commit is contained in:
@@ -50,7 +50,7 @@ impl<'a> MultiDetector<'_> {
|
||||
let infos = finder.findMulti(hints)?;
|
||||
|
||||
if infos.is_empty() {
|
||||
return Err(Exceptions::notFound);
|
||||
return Err(Exceptions::NOT_FOUND);
|
||||
}
|
||||
|
||||
let mut result = Vec::new();
|
||||
|
||||
Reference in New Issue
Block a user