Skip to content

Commit 3b61293

Browse files
committed
revert async trait removal
1 parent 7e35ca4 commit 3b61293

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

macros/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pub fn derive_insertable(input: proc_macro::TokenStream) -> proc_macro::TokenStr
2828
let table_struct = parse_table_struct(opts.table_struct);
2929

3030
let expanded = quote! {
31+
#[::async_trait::async_trait]
3132
#[automatically_derived]
3233
impl Insertable<#number_of_fields> for #name {
3334
type T = #table_struct;
@@ -76,6 +77,7 @@ pub fn derive_changeset(input: proc_macro::TokenStream) -> proc_macro::TokenStre
7677
let primary_key_column = opts.primary_key.unwrap_or("id".into());
7778

7879
let expanded = quote! {
80+
#[::async_trait::async_trait]
7981
#[automatically_derived]
8082
impl Changeset<#number_of_fields> for #name {
8183
type T = #table_struct;

0 commit comments

Comments
 (0)