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:
@@ -16,7 +16,10 @@
|
||||
|
||||
//package com.google.zxing;
|
||||
|
||||
use crate::{common::BitMatrix, BarcodeFormat, EncodingHintDictionary, Exceptions};
|
||||
use crate::{
|
||||
common::{BitMatrix, Result},
|
||||
BarcodeFormat, EncodingHintDictionary,
|
||||
};
|
||||
|
||||
/**
|
||||
* The base class for all objects which encode/generate a barcode image.
|
||||
@@ -40,7 +43,7 @@ pub trait Writer {
|
||||
format: &BarcodeFormat,
|
||||
width: i32,
|
||||
height: i32,
|
||||
) -> Result<BitMatrix, Exceptions>;
|
||||
) -> Result<BitMatrix>;
|
||||
|
||||
/**
|
||||
* @param contents The contents to encode in the barcode
|
||||
@@ -58,5 +61,5 @@ pub trait Writer {
|
||||
width: i32,
|
||||
height: i32,
|
||||
hints: &EncodingHintDictionary,
|
||||
) -> Result<BitMatrix, Exceptions>;
|
||||
) -> Result<BitMatrix>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user