clippy --fix

This commit is contained in:
Henry Schimke
2023-01-05 11:00:46 -06:00
parent 20764559ae
commit 453fc41f3f
5 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ use super::{decoder::Decoder, detector::Detector};
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
static DECODER: Lazy<Decoder> = Lazy::new(|| Decoder::new()); static DECODER: Lazy<Decoder> = Lazy::new(Decoder::new);
/** /**
* This implementation can detect and decode Data Matrix codes in an image. * This implementation can detect and decode Data Matrix codes in an image.

View File

@@ -19,7 +19,7 @@ use once_cell::sync::Lazy;
use crate::Exceptions; use crate::Exceptions;
static VERSIONS: Lazy<Vec<Version>> = Lazy::new(|| Version::buildVersions()); static VERSIONS: Lazy<Vec<Version>> = Lazy::new(Version::buildVersions);
pub type VersionRef = &'static Version; pub type VersionRef = &'static Version;

View File

@@ -44,7 +44,7 @@ use crate::{
use super::Code128Writer; use super::Code128Writer;
static WRITER: Lazy<Code128Writer> = Lazy::new(|| Code128Writer::default()); static WRITER: Lazy<Code128Writer> = Lazy::new(Code128Writer::default);
#[test] #[test]
fn testEncodeWithFunc3() { fn testEncodeWithFunc3() {

View File

@@ -24,9 +24,9 @@ use super::{one_d_reader, EANManufacturerOrgSupport, OneDReader, UPCEANExtension
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
pub static EAN_MANUFACTURER_SUPPORT: Lazy<EANManufacturerOrgSupport> = pub static EAN_MANUFACTURER_SUPPORT: Lazy<EANManufacturerOrgSupport> =
Lazy::new(|| EANManufacturerOrgSupport::default()); Lazy::new(EANManufacturerOrgSupport::default);
pub static UPC_EAN_EXTENSION_SUPPORT: Lazy<UPCEANExtensionSupport> = pub static UPC_EAN_EXTENSION_SUPPORT: Lazy<UPCEANExtensionSupport> =
Lazy::new(|| UPCEANExtensionSupport::default()); Lazy::new(UPCEANExtensionSupport::default);
// These two values are critical for determining how permissive the decoding will be. // These two values are critical for determining how permissive the decoding will be.
// We've arrived at these values through a lot of trial and error. Setting them any higher // We've arrived at these values through a lot of trial and error. Setting them any higher

View File

@@ -24,7 +24,7 @@ use once_cell::sync::Lazy;
pub type VersionRef = &'static Version; pub type VersionRef = &'static Version;
static VERSIONS: Lazy<Vec<Version>> = Lazy::new(|| Version::buildVersions()); static VERSIONS: Lazy<Vec<Version>> = Lazy::new(Version::buildVersions);
/** /**
* See ISO 18004:2006 Annex D. * See ISO 18004:2006 Annex D.