mirror of
https://github.com/uuid-rs/uuid.git
synced 2025-10-02 15:24:57 +00:00
fix deprecation versions
This commit is contained in:
parent
8f761754c0
commit
4cfbd83dee
@ -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(
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user