mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
fix missing pdf417 in multiformat writer
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 {}),
|
||||
|
||||
Reference in New Issue
Block a user