From f3f74961c4a8628eb4247c56f93645bb42ee0d31 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Mon, 20 Nov 2023 21:04:18 +1000 Subject: [PATCH] fix uuid macro in consts --- Cargo.toml | 4 ++-- README.md | 6 +++--- macros/Cargo.toml | 2 +- src/lib.rs | 8 ++++---- src/macros.rs | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d5ec0132..3cdc6111 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ homepage = "https://github.com/uuid-rs/uuid" name = "uuid" readme = "README.md" repository = "https://github.com/uuid-rs/uuid" -version = "1.6.0" # remember to update html_root_url in lib.rs +version = "1.6.1" # remember to update html_root_url in lib.rs rust-version = "1.60.0" [package.metadata.docs.rs] @@ -150,7 +150,7 @@ version = "1" # Use the `macro-diagnostics` feature instead [dependencies.uuid-macro-internal] package = "uuid-macro-internal" -version = "1.6.0" +version = "1.6.1" path = "macros" optional = true diff --git a/README.md b/README.md index a970d569..392a0247 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Add the following to your `Cargo.toml`: ```toml [dependencies.uuid] -version = "1.6.0" +version = "1.6.1" features = [ "v4", # Lets you generate random UUIDs "fast-rng", # Use a faster (but still sufficiently random) RNG @@ -65,11 +65,11 @@ assert_eq!(Some(Version::Random), my_uuid.get_version()); If you'd like to parse UUIDs _really_ fast, check out the [`uuid-simd`](https://github.com/nugine/uuid-simd) library. -For more details on using `uuid`, [see the library documentation](https://docs.rs/uuid/1.6.0/uuid). +For more details on using `uuid`, [see the library documentation](https://docs.rs/uuid/1.6.1/uuid). ## References -* [`uuid` library docs](https://docs.rs/uuid/1.6.0/uuid). +* [`uuid` library docs](https://docs.rs/uuid/1.6.1/uuid). * [Wikipedia: Universally Unique Identifier](http://en.wikipedia.org/wiki/Universally_unique_identifier). * [RFC4122: A Universally Unique IDentifier (UUID) URN Namespace](http://tools.ietf.org/html/rfc4122). diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 1f6e44a5..739a3077 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "uuid-macro-internal" -version = "1.6.0" +version = "1.6.1" edition = "2018" authors = [ "QnnOkabayashi" diff --git a/src/lib.rs b/src/lib.rs index 29515eb4..063db265 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -39,7 +39,7 @@ //! //! ```toml //! [dependencies.uuid] -//! version = "1.6.0" +//! version = "1.6.1" //! features = [ //! "v4", # Lets you generate random UUIDs //! "fast-rng", # Use a faster (but still sufficiently random) RNG @@ -141,7 +141,7 @@ //! //! ```toml //! [dependencies.uuid] -//! version = "1.6.0" +//! version = "1.6.1" //! features = [ //! "v4", //! "v7", @@ -156,7 +156,7 @@ //! //! ```toml //! [dependencies.uuid] -//! version = "1.6.0" +//! version = "1.6.1" //! default-features = false //! ``` //! @@ -214,7 +214,7 @@ #![doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", html_favicon_url = "https://www.rust-lang.org/favicon.ico", - html_root_url = "https://docs.rs/uuid/1.6.0" + html_root_url = "https://docs.rs/uuid/1.6.1" )] #[cfg(any(feature = "std", test))] diff --git a/src/macros.rs b/src/macros.rs index 7c4eb01e..eb957256 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -16,7 +16,7 @@ macro_rules! define_uuid_macro { ($uuid:literal) => {{ const OUTPUT: $crate::Uuid = match $crate::Uuid::try_parse($uuid) { $crate::__macro_support::Ok(u) => u, - $crate::__macro_support::Err(e) => panic!("{}", e), + $crate::__macro_support::Err(_) => panic!("invalid UUID"), }; OUTPUT }};