From 350806cdf343d94d45499493bea1037fcfcbb209 Mon Sep 17 00:00:00 2001 From: Vrtgs Date: Tue, 7 Jan 2025 06:48:25 +0300 Subject: [PATCH] ran cargo fmt --- src/lib.rs | 2 +- src/timestamp.rs | 12 +++++++++--- src/v7.rs | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1316d62c..c7fe760c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; diff --git a/src/timestamp.rs b/src/timestamp.rs index d147199c..4a04140c 100644 --- a/src/timestamp.rs +++ b/src/timestamp.rs @@ -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) { ( @@ -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) } @@ -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()`") } diff --git a/src/v7.rs b/src/v7.rs index c2b4a223..d55cf946 100644 --- a/src/v7.rs +++ b/src/v7.rs @@ -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