From 203befcd043cd02f2101bd1bd773b85bb093d32e Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Mon, 2 Jan 2023 17:24:20 -0600 Subject: [PATCH] fix missing pdf417 in multiformat writer --- Cargo.toml | 2 +- src/multi_format_writer.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 13e6de0..15b8fe9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rxing" -version = "0.2.0" +version = "0.2.1" description="A rust port of the zxing barcode library." license="Apache-2.0" repository="https://github.com/hschimke/rxing" diff --git a/src/multi_format_writer.rs b/src/multi_format_writer.rs index f8e8e92..572e5af 100644 --- a/src/multi_format_writer.rs +++ b/src/multi_format_writer.rs @@ -24,7 +24,7 @@ use crate::{ UPCEWriter, }, qrcode::QRCodeWriter, - BarcodeFormat, Exceptions, Writer, + BarcodeFormat, Exceptions, Writer, pdf417::PDF417Writer, }; /** @@ -64,8 +64,7 @@ impl Writer for MultiFormatWriter { BarcodeFormat::CODE_93 => Box::new(Code93Writer::default()), BarcodeFormat::CODE_128 => Box::new(Code128Writer::default()), BarcodeFormat::ITF => Box::new(ITFWriter::default()), - BarcodeFormat::PDF_417 => unimplemented!(""), - // Box::new(PDF417Writer::default()), + BarcodeFormat::PDF_417 => Box::new(PDF417Writer::default()), BarcodeFormat::CODABAR => Box::new(Code128Writer::default()), BarcodeFormat::DATA_MATRIX => Box::new(DataMatrixWriter {}), BarcodeFormat::AZTEC => Box::new(AztecWriter {}),