Skip to content

Commit 8eeee81

Browse files
committed
Update chrono and replace Duration with TimeDelta
Updated chrono to v0.4.34 and renamed Duration to TimeDelta (renamed in the newest version of chrono)
1 parent f3b8feb commit 8eeee81

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

Cargo.lock

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
22
name = "randevu"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
authors = ["TypicalHog"]
55
edition = "2021"
66
description = "The official Rust implementation of the RANDEVU algorithm"
77
readme = "README.md"
88
repository = "https://github.com/TypicalHog/randevu"
99
license = "Unlicense OR MIT OR Apache-2.0"
10-
keywords = ["randevu", "rdv", "blake3", "reminder", "universal"]
10+
keywords = ["randevu", "rdv", "global", "reminder", "blake3"]
1111
categories = ["algorithms", "date-and-time"]
1212

1313
[dependencies]
1414
blake3 = "1.5.0"
15-
chrono = "0.4.33"
15+
chrono = "0.4.34"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
//! ```
1515
1616
use blake3;
17-
use chrono::{Duration, Utc};
17+
use chrono::{TimeDelta, Utc};
1818

1919
/// Returns current UTC DATE `String` in ISO 8601 format (YYYY-MM-DD), with an OFFSET `i64` in days
2020
pub fn utc_date_with_offset(offset: i64) -> String {
21-
(Utc::now() + Duration::days(offset))
21+
(Utc::now() + TimeDelta::days(offset))
2222
.format("%Y-%m-%d")
2323
.to_string()
2424
}

0 commit comments

Comments
 (0)