Skip to content

Commit dccdf89

Browse files
committed
chore: dep updates
1 parent dc101e0 commit dccdf89

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

Cargo.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ once_cell = "1.19"
1919
encoding = "0.2"
2020
urlencoding = "2.1.3"
2121
uriparse = "0.6.4"
22-
chrono = "0.4.31"
22+
chrono = "0.4.35"
2323
chrono-tz = "0.8"
24-
image = {version = "0.24.0", optional = true, default-features = false}
25-
imageproc = {version = "0.23", optional = true}
26-
unicode-segmentation = "1.10"
24+
image = {version = "0.25.0", optional = true, default-features = false}
25+
imageproc = {version = "0.24", optional = true}
26+
unicode-segmentation = "1.11"
2727
codepage-437 = "0.1.0"
2828
rxing-one-d-proc-derive = {version = "0.5.3", path ="./crates/one-d-proc-derive"}
2929
num = "0.4.1"
3030
svg = {version = "0.16.0", optional = true}
3131
resvg = {version = "0.40.0", optional = true, default-features=false}
3232
serde = { version = "1.0", features = ["derive", "rc"], optional = true }
33-
thiserror = "1.0.56"
33+
thiserror = "1.0.58"
3434
multimap = "0.10.0"
3535
bit_reverse = "0.1.8"
3636

@@ -56,12 +56,11 @@ image_formats = [
5656
"image/webp",
5757
"image/bmp",
5858
"image/hdr",
59-
"image/dxt",
6059
"image/dds",
61-
"image/farbfeld",
62-
"image/jpeg_rayon",
63-
"image/openexr",
64-
"image/qoi"
60+
"image/qoi",
61+
"image/avif",
62+
"image/exr",
63+
"image/ff",
6564
]
6665

6766
#/// Allows the ability to force ISO/IED 18004 compliance.

src/client/result/CalendarParsedResult.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl CalendarParsedRXingResult {
166166
&format!("{}T000000Z", &when,),
167167
date_format_string,
168168
) {
169-
Ok(dtm) => Ok(dtm.timestamp()),
169+
Ok(dtm) => Ok(dtm.and_utc().timestamp()),
170170
Err(e) => Err(Exceptions::parse_with(e.to_string())),
171171
};
172172
}
@@ -209,7 +209,7 @@ impl CalendarParsedRXingResult {
209209
// Try a final time with an exact length
210210
if when.len() == 15 {
211211
return match NaiveDateTime::parse_from_str(&when, YMD_THMS_FORMAT) {
212-
Ok(dtm) => Ok(dtm.timestamp()),
212+
Ok(dtm) => Ok(dtm.and_utc().timestamp()),
213213
Err(e) => Err(Exceptions::parse_with(format!(
214214
"couldn't parse local time: {e}"
215215
))),
@@ -227,7 +227,7 @@ impl CalendarParsedRXingResult {
227227
// ? DateFormat.getDateInstance(DateFormat.MEDIUM)
228228
// : DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);
229229
// return format.format(date);
230-
if let Some(dtm) = NaiveDateTime::from_timestamp_opt(date, 0) {
230+
if let Some(dtm) = DateTime::from_timestamp(date, 0) {
231231
dtm.format(format_string).to_string()
232232
} else {
233233
String::default()

src/client/result/CalendarParsedResultTestCase.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
// */
3535
// public final class CalendarParsedRXingResultTestCase extends Assert {
3636

37-
use chrono::NaiveDateTime;
37+
use chrono::DateTime;
3838

3939
use crate::{
4040
client::result::{ParsedClientResult, ParsedRXingResultType},
@@ -251,7 +251,7 @@ fn assertEqualOrNaN(expected: f64, actual: f64) {
251251
}
252252

253253
fn format_date_string(timestamp: i64, format_string: &str) -> String {
254-
if let Some(dtm) = NaiveDateTime::from_timestamp_opt(timestamp, 0) {
254+
if let Some(dtm) = DateTime::from_timestamp(timestamp, 0) {
255255
dtm.format(format_string).to_string()
256256
} else {
257257
String::default()

0 commit comments

Comments
 (0)