This commit is contained in:
JMARyA 2024-07-17 16:53:31 +02:00
parent ca2b0036f0
commit 3e73dd0d20
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -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
}