fixed uuid_provider macro

This commit is contained in:
Dmitry Stepanov
2025-09-20 12:18:42 +03:00
parent e666dfd8a0
commit 06d9b2ec7f
+2 -3
View File
@@ -39,9 +39,8 @@ pub trait TypeUuidProvider: Sized {
#[macro_export]
macro_rules! uuid_provider {
($type:ident $(<$($generics:tt),*>)? = $uuid:expr) => {
#[allow(non_camel_case_types)]
impl$(<$($generics),*>)? $crate::type_traits::TypeUuidProvider for $type $(<$($generics),*>)? {
($type:ty = $uuid:expr) => {
impl $crate::type_traits::TypeUuidProvider for $type {
fn type_uuid() -> $crate::uuid::Uuid {
$crate::uuid::uuid!($uuid)
}