From 8c17f330cdbd256f67fd9891f84af96f528629f5 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Sun, 9 Oct 2022 09:24:16 +1000 Subject: [PATCH 1/2] fix up lost re-export of v1 Timestamp --- src/v1.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/v1.rs b/src/v1.rs index f1d50fb2..e19c8a3f 100644 --- a/src/v1.rs +++ b/src/v1.rs @@ -3,9 +3,10 @@ //! This module is soft-deprecated. Instead of using the `Context` type re-exported here, //! use the one from the crate root. -use crate::{Builder, Timestamp, Uuid}; +use crate::{Builder, Uuid}; -pub use crate::timestamp::context::Context; +#[deprecated(note = "use types from the crate root instead")] +pub use crate::{timestamp::context::Context, Timestamp}; impl Uuid { /// Create a new version 1 UUID using the current system time and node ID. From 9f823feab94b04f55996980278f3559c79504d3e Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Sun, 9 Oct 2022 09:27:52 +1000 Subject: [PATCH 2/2] fix some links in the docs --- src/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 772f1ee9..60aeb435 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -54,7 +54,7 @@ impl Uuid { /// /// # References /// - /// * [Nil UUID in RFC4122]: https://tools.ietf.org/html/rfc4122.html#section-4.1.7 + /// * [Nil UUID in RFC4122](https://tools.ietf.org/html/rfc4122.html#section-4.1.7) /// /// # Examples /// @@ -80,7 +80,7 @@ impl Uuid { /// /// # References /// - /// * [Max UUID in Draft RFC: New UUID Formats, Version 4]: https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.4 + /// * [Max UUID in Draft RFC: New UUID Formats, Version 4](https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.4) /// /// # Examples ///