Skip to content

Commit

Permalink
chore: apply some clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hschimke committed Dec 22, 2024
1 parent fec2a61 commit 2ade809
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/common/bit_matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,11 +677,6 @@ impl BitMatrix {
* @return string representation of entire matrix utilizing given strings and line separator
* @deprecated call {@link #toString(String,String)} only, which uses \n line separator always
*/
// @Deprecated
// public String toString(String setString, String unsetString, String lineSeparator) {
// return buildToString(setString, unsetString, lineSeparator);
// }

fn buildToString(&self, setString: &str, unsetString: &str, lineSeparator: &str) -> String {
let mut result =
String::with_capacity((self.height * (self.width + 1)).try_into().unwrap());
Expand Down
1 change: 0 additions & 1 deletion src/common/grid_sampler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ use super::{BitMatrix, PerspectiveTransform, Quadrilateral};
*
* @author Sean Owen
*/

pub trait GridSampler {
// /**
// * Sets the implementation of GridSampler used by the library. One global
Expand Down
4 changes: 2 additions & 2 deletions src/oned/code_128_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ impl Code128Reader {
one_d_reader::record_pattern(row, rowOffset, counters)?;
let mut bestVariance = MAX_AVG_VARIANCE; // worst variance we'll accept
let mut bestMatch = -1_isize;
for d in 0..CODE_PATTERNS.len() {
let pattern = &CODE_PATTERNS[d];
for (d, pattern) in CODE_PATTERNS.iter().enumerate() {
// for d in 0..CODE_PATTERNS.len() {
let variance =
one_d_reader::pattern_match_variance(counters, pattern, MAX_INDIVIDUAL_VARIANCE);
if variance < bestVariance {
Expand Down

0 comments on commit 2ade809

Please sign in to comment.