Skip to content

Commit

Permalink
fix deprecation versions
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jan 14, 2025
1 parent 8f76175 commit 4cfbd83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -909,15 +909,15 @@ impl Builder {
#[doc(hidden)]
impl Builder {
#[deprecated(
since = "1.12.0",
since = "1.10.0",
note = "use `Builder::from_gregorian_timestamp(ticks, counter, node_id)`"
)]
pub const fn from_rfc4122_timestamp(ticks: u64, counter: u16, node_id: &[u8; 6]) -> Self {
Builder::from_gregorian_timestamp(ticks, counter, node_id)
}

#[deprecated(
since = "1.12.0",
since = "1.10.0",
note = "use `Builder::from_sorted_gregorian_timestamp(ticks, counter, node_id)`"
)]
pub const fn from_sorted_rfc4122_timestamp(
Expand Down
4 changes: 2 additions & 2 deletions src/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ impl Timestamp {
#[doc(hidden)]
impl Timestamp {
#[deprecated(
since = "1.12.0",
since = "1.10.0",
note = "use `Timestamp::from_gregorian(ticks, counter)`"
)]
pub const fn from_rfc4122(ticks: u64, counter: u16) -> Self {
Timestamp::from_gregorian(ticks, counter)
}

#[deprecated(since = "1.12.0", note = "use `Timestamp::to_gregorian()`")]
#[deprecated(since = "1.10.0", note = "use `Timestamp::to_gregorian()`")]
pub const fn to_rfc4122(&self) -> (u64, u16) {
self.to_gregorian()
}
Expand Down

0 comments on commit 4cfbd83

Please sign in to comment.