Skip to content

Commit

Permalink
use uuid_unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jul 16, 2023
1 parent 33f6b3e commit 5a1f3f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/sortable_uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -13,5 +13,5 @@ fn main() {
println!("{}", uuid);
}

#[cfg(not(feature = "v7"))]
#[cfg(not(all(uuid_unstable, feature = "v7")))]
fn main() {}

0 comments on commit 5a1f3f5

Please sign in to comment.