Skip to content

Commit

Permalink
Use expr instead of ident
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrajs16 committed Jul 1, 2024
1 parent 09973d6 commit 8896e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ macro_rules! define_uuid_macro {
#[cfg(feature = "macro-diagnostics")]
#[macro_export]
macro_rules! uuid {
($uuid:ident) => {{
($uuid:expr) => {{
const OUTPUT: $crate::Uuid = match $crate::Uuid::try_parse($uuid) {
$crate::__macro_support::Ok(u) => u,
$crate::__macro_support::Err(_) => panic!("invalid UUID"),
Expand Down

0 comments on commit 8896e26

Please sign in to comment.