mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
ean 8 integration passes
This commit is contained in:
@@ -92,14 +92,14 @@ pub fn ean_reader_derive(input: TokenStream) -> TokenStream {
|
||||
fn impl_ean_reader_macro(ast: &syn::DeriveInput) -> TokenStream {
|
||||
let name = &ast.ident;
|
||||
let gen = quote! {
|
||||
impl OneDReader for #name {
|
||||
impl super::OneDReader for #name {
|
||||
fn decodeRow(
|
||||
&mut self,
|
||||
rowNumber: u32,
|
||||
row: &crate::common::BitArray,
|
||||
hints: &crate::DecodingHintDictionary,
|
||||
) -> Result<crate::RXingResult, crate::Exceptions> {
|
||||
self.decodeRowWithGuardRange(rowNumber, row, Self::findStartGuardPattern(row), hints)
|
||||
self.decodeRowWithGuardRange(rowNumber, row, &Self::findStartGuardPattern(row)?, hints)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user