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:
@@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
use crate::Exceptions;
|
||||
use crate::common::Result;
|
||||
|
||||
use super::EncoderContext;
|
||||
|
||||
pub trait Encoder {
|
||||
fn getEncodingMode(&self) -> usize;
|
||||
|
||||
fn encode(&self, context: &mut EncoderContext) -> Result<(), Exceptions>;
|
||||
fn encode(&self, context: &mut EncoderContext) -> Result<()>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user