Skip to content

Commit

Permalink
ran cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrtgs committed Jan 7, 2025
1 parent da1b94d commit 350806c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ extern crate std;
extern crate core as std;

#[cfg(all(uuid_unstable, feature = "zerocopy"))]
use zerocopy::{IntoBytes, FromBytes, Immutable, KnownLayout, Unaligned};
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout, Unaligned};

mod builder;
mod error;
Expand Down
12 changes: 9 additions & 3 deletions src/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl Timestamp {
///
/// If conversion from the internal timestamp format to ticks would overflow
/// then it will wrap.
///
///
/// If the internal counter is wider than 14 bits then it will be truncated to 14 bits.
pub const fn to_gregorian(&self) -> (u64, u16) {
(
Expand Down Expand Up @@ -165,7 +165,10 @@ impl Timestamp {

#[doc(hidden)]
impl Timestamp {
#[deprecated(since = "1.11.0", note = "use `Timestamp::from_gregorian(ticks, counter)`")]
#[deprecated(
since = "1.11.0",
note = "use `Timestamp::from_gregorian(ticks, counter)`"
)]
pub const fn from_rfc4122(ticks: u64, counter: u16) -> Self {
Timestamp::from_gregorian(ticks, counter)
}
Expand All @@ -175,7 +178,10 @@ impl Timestamp {
self.to_gregorian()
}

#[deprecated(since = "1.2.0", note = "`Timestamp::to_unix_nanos()` is deprecated and will be removed: use `Timestamp::to_unix()`")]
#[deprecated(
since = "1.2.0",
note = "`Timestamp::to_unix_nanos()` is deprecated and will be removed: use `Timestamp::to_unix()`"
)]
pub const fn to_unix_nanos(&self) -> u32 {
panic!("`Timestamp::to_unix_nanos()` is deprecated and will be removed: use `Timestamp::to_unix()`")
}
Expand Down
2 changes: 1 addition & 1 deletion src/v7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl Uuid {
/// # Examples
///
/// A v7 UUID can be created from a unix [`Timestamp`] plus a 128 bit
/// random number. When supplied as such, the data will be combined
/// random number. When supplied as such, the data will be combined
/// to ensure uniqueness and sortability at millisecond granularity.
///
/// ```rust
Expand Down

0 comments on commit 350806c

Please sign in to comment.