From 3e73dd0d206a31b4926a35491ab23ca103872d10 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Wed, 17 Jul 2024 16:53:31 +0200 Subject: [PATCH] fix --- mongod_derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongod_derive/src/lib.rs b/mongod_derive/src/lib.rs index 6069f68..a753d8a 100644 --- a/mongod_derive/src/lib.rs +++ b/mongod_derive/src/lib.rs @@ -120,7 +120,7 @@ pub fn referencable_derive(input: TokenStream) -> TokenStream { let name_str = name.to_string().to_snake(); let code = quote! { - impl mongod::model::reference::Referencable for MyStruct { + impl mongod::model::reference::Referencable for #name { fn collection_name() -> &'static str { #name_str }