fix major issue with codabar

This commit is contained in:
Henry Schimke
2023-01-07 17:13:13 -06:00
parent 0fe220fd63
commit ae3e1cf3d5
4 changed files with 13 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ use crate::{
datamatrix::DataMatrixWriter,
oned::{
Code128Writer, Code39Writer, Code93Writer, EAN13Writer, EAN8Writer, ITFWriter, UPCAWriter,
UPCEWriter,
UPCEWriter, CodaBarWriter,
},
pdf417::PDF417Writer,
qrcode::QRCodeWriter,
@@ -67,7 +67,7 @@ impl Writer for MultiFormatWriter {
BarcodeFormat::CODE_128 => Box::<Code128Writer>::default(),
BarcodeFormat::ITF => Box::<ITFWriter>::default(),
BarcodeFormat::PDF_417 => Box::<PDF417Writer>::default(),
BarcodeFormat::CODABAR => Box::<Code128Writer>::default(),
BarcodeFormat::CODABAR => Box::<CodaBarWriter>::default(),
BarcodeFormat::DATA_MATRIX => Box::<DataMatrixWriter>::default(),
BarcodeFormat::AZTEC => Box::<AztecWriter>::default(),
_ => {