mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
cargo fmt
This commit is contained in:
@@ -28,16 +28,16 @@ use crate::Exceptions;
|
|||||||
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
|
||||||
pub enum CharacterSet {
|
pub enum CharacterSet {
|
||||||
// Enum name is a Java encoding valid for java.lang and java.io
|
// Enum name is a Java encoding valid for java.lang and java.io
|
||||||
Cp437, //(new int[]{0,2}),
|
Cp437, //(new int[]{0,2}),
|
||||||
ISO8859_1, //(new int[]{1,3}, "ISO-8859-1"),
|
ISO8859_1, //(new int[]{1,3}, "ISO-8859-1"),
|
||||||
ISO8859_2, //(4, "ISO-8859-2"),
|
ISO8859_2, //(4, "ISO-8859-2"),
|
||||||
ISO8859_3, //(5, "ISO-8859-3"),
|
ISO8859_3, //(5, "ISO-8859-3"),
|
||||||
ISO8859_4, //(6, "ISO-8859-4"),
|
ISO8859_4, //(6, "ISO-8859-4"),
|
||||||
ISO8859_5, //(7, "ISO-8859-5"),
|
ISO8859_5, //(7, "ISO-8859-5"),
|
||||||
ISO8859_6, //(8, "ISO-8859-6"),
|
ISO8859_6, //(8, "ISO-8859-6"),
|
||||||
ISO8859_7, //(9, "ISO-8859-7"),
|
ISO8859_7, //(9, "ISO-8859-7"),
|
||||||
ISO8859_8, //(10, "ISO-8859-8"),
|
ISO8859_8, //(10, "ISO-8859-8"),
|
||||||
ISO8859_9, //(11, "ISO-8859-9"),
|
ISO8859_9, //(11, "ISO-8859-9"),
|
||||||
ISO8859_10, //(12, "ISO-8859-10"),
|
ISO8859_10, //(12, "ISO-8859-10"),
|
||||||
ISO8859_11, //(13, "ISO-8859-11"),
|
ISO8859_11, //(13, "ISO-8859-11"),
|
||||||
ISO8859_13, //(15, "ISO-8859-13"),
|
ISO8859_13, //(15, "ISO-8859-13"),
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ use crate::{
|
|||||||
common::{BitMatrix, HybridBinarizer, Result},
|
common::{BitMatrix, HybridBinarizer, Result},
|
||||||
multi::{GenericMultipleBarcodeReader, MultipleBarcodeReader},
|
multi::{GenericMultipleBarcodeReader, MultipleBarcodeReader},
|
||||||
BarcodeFormat, BinaryBitmap, DecodeHintType, DecodeHintValue, DecodingHintDictionary,
|
BarcodeFormat, BinaryBitmap, DecodeHintType, DecodeHintValue, DecodingHintDictionary,
|
||||||
Exceptions, Luma8LuminanceSource, MultiFormatReader, RXingResult, Reader, MultiUseMultiFormatReader,
|
Exceptions, Luma8LuminanceSource, MultiFormatReader, MultiUseMultiFormatReader, RXingResult,
|
||||||
|
Reader,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "image")]
|
#[cfg(feature = "image")]
|
||||||
@@ -74,7 +75,7 @@ pub fn detect_multiple_in_svg_with_hints(
|
|||||||
) -> Result<Vec<RXingResult>> {
|
) -> Result<Vec<RXingResult>> {
|
||||||
use std::{fs::File, io::Read};
|
use std::{fs::File, io::Read};
|
||||||
|
|
||||||
use crate::{SVGLuminanceSource};
|
use crate::SVGLuminanceSource;
|
||||||
|
|
||||||
let path = PathBuf::from(file_name);
|
let path = PathBuf::from(file_name);
|
||||||
if !path.exists() {
|
if !path.exists() {
|
||||||
|
|||||||
Reference in New Issue
Block a user