refactor to use common result type

This commit is contained in:
Vukašin Stepanović
2023-02-14 22:56:03 +00:00
parent 145cf704fe
commit 8ee616d96b
160 changed files with 829 additions and 901 deletions

View File

@@ -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)
}