mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
cleanup in process
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user