Add default for most readers

This commit is contained in:
Henry Schimke
2023-01-03 06:39:00 -06:00
parent 7145934f84
commit e095de835d
11 changed files with 33 additions and 25 deletions

View File

@@ -37,6 +37,7 @@ use super::MultipleBarcodeReader;
*
* @author Sean Owen
*/
#[derive(Default)]
pub struct GenericMultipleBarcodeReader<T: Reader>(T);
impl<T: Reader> MultipleBarcodeReader for GenericMultipleBarcodeReader<T> {

View File

@@ -34,6 +34,7 @@ use super::detector::MultiDetector;
* @author Sean Owen
* @author Hannes Erven
*/
#[derive(Default)]
pub struct QRCodeMultiReader(QRCodeReader);
impl MultipleBarcodeReader for QRCodeMultiReader {
fn decode_multiple(