cleanup in process

This commit is contained in:
Henry Schimke
2022-08-24 18:17:40 -05:00
parent a32832a515
commit 3f1f6941bb
2 changed files with 58 additions and 58 deletions

View File

@@ -1097,7 +1097,7 @@ impl BinaryBitmap {
pub fn new(binarizer: Box<dyn Binarizer>) -> Self {
Self {
binarizer: binarizer,
matrix: binarizer.getBlackMatrix(),
matrix: binarizer.getBlackMatrix().unwrap(),
}
}
@@ -1217,7 +1217,7 @@ impl BinaryBitmap {
impl fmt::Display for BinaryBitmap {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.getBlackMatrix())
write!(f, "{}", self.getBlackMatrix().unwrap())
}
}