fix deprecation versions

This commit is contained in:
KodrAus 2025-01-14 20:37:59 +10:00
parent 8f761754c0
commit 4cfbd83dee
2 changed files with 4 additions and 4 deletions

View File

@ -909,7 +909,7 @@ 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 {
@ -917,7 +917,7 @@ impl Builder {
}
#[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(

View File

@ -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()
}