fix
This commit is contained in:
parent
ca2b0036f0
commit
3e73dd0d20
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue