diff --git a/Cargo.toml b/Cargo.toml index 455f22cc..3b425ff4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,13 +13,13 @@ exclude = [ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -regex = "1.9.0" +regex = "1.10" fancy-regex = "0.11" once_cell = "1.18" encoding = "0.2" urlencoding = "2.1.3" uriparse = "0.6.4" -chrono = "0.4.26" +chrono = "0.4.31" chrono-tz = "0.8" image = {version = "0.24", optional = true} imageproc = {version = "0.23", optional = true} @@ -27,7 +27,7 @@ unicode-segmentation = "1.10" codepage-437 = "0.1.0" rxing-one-d-proc-derive = {version = "0.5", path ="./crates/one-d-proc-derive"} num = "0.4.0" -svg = {version = "0.13", optional = true} +svg = {version = "0.14", optional = true} resvg = {version = "0.35", optional = true, default-features=false} serde = { version = "1.0", features = ["derive", "rc"], optional = true } thiserror = "1.0.44" @@ -40,7 +40,7 @@ rand = "0.8.5" criterion = "0.5" [features] -default = ["image"] +default = ["image", "svg_write", "svg_read"] #/// Enable features required for image manipulation and reading. image = ["dep:image", "dep:imageproc"] diff --git a/src/datamatrix/encoder/high_level_encoder.rs b/src/datamatrix/encoder/high_level_encoder.rs index 9c3c78c5..f27600f4 100644 --- a/src/datamatrix/encoder/high_level_encoder.rs +++ b/src/datamatrix/encoder/high_level_encoder.rs @@ -594,8 +594,7 @@ pub fn determineConsecutiveDigitCount(msg: &str, startpos: u32) -> u32 { let len = msg.chars().count(); //len(); let mut idx = startpos; // let graphemes = msg.graphemes(true); - while (idx as usize) < len && isDigit(msg.chars().nth(idx as usize).unwrap_or_default()) - { + while (idx as usize) < len && isDigit(msg.chars().nth(idx as usize).unwrap_or_default()) { idx += 1; } idx - startpos diff --git a/src/oned/rss/expanded/rss_expanded_stacked_internal_test_case.rs b/src/oned/rss/expanded/rss_expanded_stacked_internal_test_case.rs index 4da50aeb..e6bb8e95 100644 --- a/src/oned/rss/expanded/rss_expanded_stacked_internal_test_case.rs +++ b/src/oned/rss/expanded/rss_expanded_stacked_internal_test_case.rs @@ -24,8 +24,7 @@ * http://www.piramidepse.com/ */ - -use crate::{Reader}; +use crate::Reader; use super::{test_case_util, RSSExpandedReader};