cargo fmt

This commit is contained in:
Henry Schimke
2022-11-28 11:51:46 -06:00
parent 75e69bc498
commit 967047eb66
5 changed files with 11 additions and 8 deletions

View File

@@ -16,7 +16,10 @@
use std::collections::HashMap;
use crate::{aztec::AztecWriter, qrcode::QRCodeWriter, BarcodeFormat, Exceptions, Writer, datamatrix::DataMatrixWriter};
use crate::{
aztec::AztecWriter, datamatrix::DataMatrixWriter, qrcode::QRCodeWriter, BarcodeFormat,
Exceptions, Writer,
};
/**
* This is a factory class which finds the appropriate Writer subclass for the BarcodeFormat
@@ -67,8 +70,7 @@ impl Writer for MultiFormatWriter {
// writer = PDF417Writer(),
BarcodeFormat::CODABAR => unimplemented!(""),
// writer = CodaBarWriter(),
BarcodeFormat::DATA_MATRIX =>
Box::new(DataMatrixWriter{}),
BarcodeFormat::DATA_MATRIX => Box::new(DataMatrixWriter {}),
BarcodeFormat::AZTEC => Box::new(AztecWriter {}),
_ => {
return Err(Exceptions::IllegalArgumentException(format!(