mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 04:42:35 +00:00
Use thiserror for error handling with less boilerplate
This commit is contained in:
@@ -47,7 +47,7 @@ impl OneDReader for MultiFormatOneDReader {
|
||||
}
|
||||
}
|
||||
|
||||
Err(Exceptions::notFound)
|
||||
Err(Exceptions::NOT_FOUND)
|
||||
}
|
||||
}
|
||||
impl MultiFormatOneDReader {
|
||||
@@ -166,7 +166,7 @@ impl Reader for MultiFormatOneDReader {
|
||||
|
||||
Ok(result)
|
||||
} else {
|
||||
Err(Exceptions::notFound)
|
||||
Err(Exceptions::NOT_FOUND)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user