mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 12:52:34 +00:00
cleaned up many warnings
This commit is contained in:
@@ -25,7 +25,6 @@ use crate::{
|
||||
shared_test_methods::{stripSpace, toBitArray, toBooleanArray},
|
||||
AztecDetectorResult::AztecDetectorRXingResult,
|
||||
},
|
||||
common::{BitArray, BitMatrix},
|
||||
BarcodeFormat, EncodeHintType, EncodeHintValue, RXingResultPoint,
|
||||
};
|
||||
|
||||
@@ -49,8 +48,8 @@ const UTF_8: EncodingRef = encoding::all::UTF_8; //StandardCharsets.UTF_8;
|
||||
const ISO_8859_15: EncodingRef = encoding::all::ISO_8859_15; //Charset.forName("ISO-8859-15");
|
||||
const WINDOWS_1252: EncodingRef = encoding::all::WINDOWS_1252; //Charset.forName("Windows-1252");
|
||||
|
||||
const DOTX: &str = "[^.X]";
|
||||
const SPACES: &str = "\\s+";
|
||||
// const DOTX: &str = "[^.X]";
|
||||
// const SPACES: &str = "\\s+";
|
||||
const NO_POINTS: Vec<RXingResultPoint> = Vec::new();
|
||||
|
||||
// real life tests
|
||||
|
||||
@@ -14,12 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
use encoding::Encoding;
|
||||
|
||||
use crate::{
|
||||
common::{
|
||||
reedsolomon::{
|
||||
get_predefined_genericgf, GenericGF, PredefinedGenericGF, ReedSolomonDecoder, GenericGFRef,
|
||||
get_predefined_genericgf, PredefinedGenericGF, ReedSolomonDecoder, GenericGFRef,
|
||||
},
|
||||
BitMatrix, CharacterSetECI, DecoderRXingResult, DetectorRXingResult,
|
||||
},
|
||||
|
||||
@@ -19,7 +19,7 @@ use std::fmt;
|
||||
use crate::{
|
||||
common::{
|
||||
detector::{MathUtils, WhiteRectangleDetector},
|
||||
reedsolomon::{self, GenericGF, ReedSolomonDecoder},
|
||||
reedsolomon::{self, ReedSolomonDecoder},
|
||||
BitMatrix, DefaultGridSampler, GridSampler,
|
||||
},
|
||||
exceptions::Exceptions,
|
||||
|
||||
@@ -19,7 +19,7 @@ use encoding::Encoding;
|
||||
use crate::{
|
||||
common::{
|
||||
reedsolomon::{
|
||||
get_predefined_genericgf, GenericGF, PredefinedGenericGF, ReedSolomonEncoder, GenericGFRef,
|
||||
get_predefined_genericgf, PredefinedGenericGF, ReedSolomonEncoder, GenericGFRef,
|
||||
},
|
||||
BitArray, BitMatrix,
|
||||
},
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
use std::rc::Rc;
|
||||
|
||||
use crate::common::BitArray;
|
||||
|
||||
use super::{BinaryShiftToken, SimpleToken};
|
||||
|
||||
Reference in New Issue
Block a user