Skip to content

Commit 3c27756

Browse files
authored
Rename dep_time dependency to time (#3098)
We no longer have a crate feature named `time`, so renaming the dependency isn't needed anymore.
1 parent 5f2133e commit 3c27756

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ serde = { version = "1.0.192", features = ["derive"] }
3636
url = { version = "2.4.1", features = ["serde"] }
3737
tokio = { version = "1.34.0", features = ["fs", "macros", "rt", "sync", "time", "io-util"] }
3838
futures = { version = "0.3.29", default-features = false, features = ["std"] }
39-
dep_time = { version = "0.3.36", package = "time", features = ["formatting", "parsing", "serde-well-known"] }
39+
time = { version = "0.3.36", features = ["formatting", "parsing", "serde-well-known"] }
4040
base64 = { version = "0.22.0" }
4141
secrecy = { version = "0.8.0", features = ["serde"] }
4242
arrayvec = { version = "0.7.4", features = ["serde"] }

src/model/timestamp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ use std::str::FromStr;
3636
pub use chrono::ParseError as InnerError;
3737
#[cfg(feature = "chrono")]
3838
use chrono::{DateTime, SecondsFormat, TimeZone, Utc};
39+
use serde::{Deserialize, Serialize};
3940
#[cfg(not(feature = "chrono"))]
40-
pub use dep_time::error::Parse as InnerError;
41+
pub use time::error::Parse as InnerError;
4142
#[cfg(not(feature = "chrono"))]
42-
use dep_time::{format_description::well_known::Rfc3339, serde::rfc3339, Duration, OffsetDateTime};
43-
use serde::{Deserialize, Serialize};
43+
use time::{format_description::well_known::Rfc3339, serde::rfc3339, Duration, OffsetDateTime};
4444

4545
/// Discord's epoch starts at "2015-01-01T00:00:00+00:00"
4646
const DISCORD_EPOCH: u64 = 1_420_070_400_000;

0 commit comments

Comments
 (0)