From 5a1f3f56d34365a7c85a36585225bc3f20a9b6f3 Mon Sep 17 00:00:00 2001 From: KodrAus Date: Mon, 17 Jul 2023 08:45:31 +1000 Subject: [PATCH] use uuid_unstable --- examples/sortable_uuid.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sortable_uuid.rs b/examples/sortable_uuid.rs index fd4b56f3..0f8c21da 100644 --- a/examples/sortable_uuid.rs +++ b/examples/sortable_uuid.rs @@ -2,7 +2,7 @@ //! //! If you enable the `v7` feature you can generate sortable UUIDs. -#[cfg(feature = "v7")] +#[cfg(all(uuid_unstable, feature = "v7"))] fn main() { use uuid::Uuid; @@ -13,5 +13,5 @@ fn main() { println!("{}", uuid); } -#[cfg(not(feature = "v7"))] +#[cfg(not(all(uuid_unstable, feature = "v7")))] fn main() {}