Skip to content

Commit 8cc181f

Browse files
committed
fix: missing the generics on the quote interpolation for the CanyonMapper proc macro
1 parent 66cefe3 commit 8cc181f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

canyon_macros/src/canyon_mapper_macro.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const BY_VALUE_CONVERSION_TARGETS: [&str; 1] = ["String"];
1313

1414
pub fn canyon_mapper_impl_tokens(ast: DeriveInput) -> TokenStream {
1515
let ty = &ast.ident;
16+
let generics = &ast.generics;
1617
let mut impl_methods = TokenStream::new();
1718

1819
// Recovers the identifiers of the structs members
@@ -58,7 +59,7 @@ pub fn canyon_mapper_impl_tokens(ast: DeriveInput) -> TokenStream {
5859
});
5960

6061
quote! {
61-
impl canyon_sql::core::RowMapper for #ty {
62+
impl #generics canyon_sql::core::RowMapper for #ty #generics {
6263
type Output = #ty;
6364
#impl_methods
6465
}

0 commit comments

Comments
 (0)