ean 8 integration passes

This commit is contained in:
Henry Schimke
2022-12-09 18:15:52 -06:00
parent 0cd27d1ae3
commit 81f2298dd0
14 changed files with 1059 additions and 780 deletions

View File

@@ -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)
}
}
};