From 6b0a6f7ff609c6ce63bd8e96b5fff4bf1a3c6bcb Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Tue, 30 Jan 2024 17:34:57 -0600 Subject: [PATCH] fix: cover all barcode formats --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index a6cd867..d750388 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -68,6 +68,8 @@ pub enum BarcodeFormat { Telepen, + RectangularMicroQR, + /// UnsuportedFormat, } @@ -95,6 +97,8 @@ impl From for rxing::BarcodeFormat { BarcodeFormat::MicroQR => rxing::BarcodeFormat::MICRO_QR_CODE, BarcodeFormat::UnsuportedFormat => rxing::BarcodeFormat::UNSUPORTED_FORMAT, BarcodeFormat::Telepen => rxing::BarcodeFormat::TELEPEN, + BarcodeFormat::RectangularMicroQR => rxing::BarcodeFormat::RECTANGULAR_MICRO_QR_CODE, + } } } @@ -122,6 +126,7 @@ impl From for BarcodeFormat { rxing::BarcodeFormat::MICRO_QR_CODE => BarcodeFormat::MicroQR, rxing::BarcodeFormat::UNSUPORTED_FORMAT => BarcodeFormat::UnsuportedFormat, rxing::BarcodeFormat::TELEPEN => BarcodeFormat::Telepen, + rxing::BarcodeFormat::RECTANGULAR_MICRO_QR_CODE => BarcodeFormat::RectangularMicroQR, } } }