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:
@@ -19,8 +19,8 @@
|
||||
use std::{borrow::Cow, fmt, rc::Rc};
|
||||
|
||||
use crate::{
|
||||
common::{BitArray, BitMatrix},
|
||||
Binarizer, Exceptions,
|
||||
common::{BitArray, BitMatrix, Result},
|
||||
Binarizer,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -68,7 +68,7 @@ impl BinaryBitmap {
|
||||
* @return The array of bits for this row (true means black).
|
||||
* @throws NotFoundException if row can't be binarized
|
||||
*/
|
||||
pub fn getBlackRow(&self, y: usize) -> Result<Cow<BitArray>, Exceptions> {
|
||||
pub fn getBlackRow(&self, y: usize) -> Result<Cow<BitArray>> {
|
||||
self.binarizer.getBlackRow(y)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user