mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-28 05:12:34 +00:00
clippy --fix
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user