mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
cleanup more warnings and deprecated function use
This commit is contained in:
@@ -224,6 +224,7 @@ impl DefaultPlacement {
|
||||
self.module(1, self.numcols as isize - 1, pos, 8);
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn toBitFieldStringArray(&self) -> Vec<String> {
|
||||
let bits = self.getBits();
|
||||
let numrows = self.getNumrows();
|
||||
|
||||
@@ -20,7 +20,6 @@ use crate::{Dimension, Exceptions};
|
||||
|
||||
use super::{SymbolInfo, SymbolInfoLookup, SymbolShapeHint};
|
||||
use encoding::{self, EncodingRef};
|
||||
use unicode_segmentation::UnicodeSegmentation;
|
||||
|
||||
const ISO_8859_1_ENCODER: EncodingRef = encoding::all::ISO_8859_1;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ use super::{
|
||||
ASCIIEncoder, Base256Encoder, C40Encoder, EdifactEncoder, Encoder, EncoderContext,
|
||||
SymbolInfoLookup, SymbolShapeHint, TextEncoder, X12Encoder,
|
||||
};
|
||||
#[allow(dead_code)]
|
||||
const DEFAULT_ENCODING: EncodingRef = encoding::all::ISO_8859_1;
|
||||
|
||||
/**
|
||||
|
||||
@@ -354,13 +354,12 @@ impl<'a> SymbolInfoLookup<'a> {
|
||||
}
|
||||
|
||||
mod tests {
|
||||
use crate::{
|
||||
datamatrix::encoder::{SymbolInfo, SymbolShapeHint},
|
||||
Dimension,
|
||||
};
|
||||
|
||||
use crate::{datamatrix::encoder::SymbolShapeHint, Dimension};
|
||||
|
||||
use super::SymbolInfoLookup;
|
||||
|
||||
#[allow(dead_code)]
|
||||
const LOOKUP: SymbolInfoLookup = SymbolInfoLookup::new();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user