mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
fixed uuid_provider macro
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user