cleanup more warnings and deprecated function use

This commit is contained in:
Henry Schimke
2022-12-30 17:00:35 -06:00
parent b383d7b0d4
commit 29a4040f2d
38 changed files with 158 additions and 133 deletions

View File

@@ -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();

View File

@@ -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;

View File

@@ -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;
/**

View File

@@ -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();
/**