From 1ee6b595a8a88dea3ead4ab55c224d9380b87375 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Wed, 6 Mar 2024 06:32:20 -0800 Subject: [PATCH] cargo: upgrade chrono from 0.4.34 to 0.4.35 --- Cargo.lock | 4 ++-- cli/tests/common/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3524cd6892..dfb8196286 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -320,9 +320,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.34" +version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bc015644b92d5890fab7489e49d21f879d5c990186827d42ec511919404f38b" +checksum = "8eaf5903dcbc0a39312feb77df2ff4c76387d591b9fc7b04a238dcf8bb62639a" dependencies = [ "android-tzdata", "iana-time-zone", diff --git a/cli/tests/common/mod.rs b/cli/tests/common/mod.rs index 87ed30f71d..4dcfa16a58 100644 --- a/cli/tests/common/mod.rs +++ b/cli/tests/common/mod.rs @@ -102,7 +102,7 @@ impl TestEnvironment { *command_number += 1; cmd.env("JJ_RANDOMNESS_SEED", command_number.to_string()); let timestamp = chrono::DateTime::parse_from_rfc3339("2001-02-03T04:05:06+07:00").unwrap(); - let timestamp = timestamp + chrono::Duration::seconds(*command_number); + let timestamp = timestamp + chrono::Duration::try_seconds(*command_number).unwrap(); cmd.env("JJ_TIMESTAMP", timestamp.to_rfc3339()); cmd.env("JJ_OP_TIMESTAMP", timestamp.to_rfc3339());