From c99f7e01b44907ca529dc9a1a2dae6b4f39693b0 Mon Sep 17 00:00:00 2001 From: Kevin Pease Date: Mon, 3 Jun 2024 14:05:35 +0200 Subject: [PATCH] Add actual changes --- stellar_rust_sdk_derive/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stellar_rust_sdk_derive/src/lib.rs b/stellar_rust_sdk_derive/src/lib.rs index e831474..a43c248 100644 --- a/stellar_rust_sdk_derive/src/lib.rs +++ b/stellar_rust_sdk_derive/src/lib.rs @@ -7,9 +7,10 @@ use syn::{parse_macro_input, DeriveInput}; pub fn pagination_macro(input: TokenStream) -> TokenStream { let input = parse_macro_input!(input as DeriveInput); let struct_name = &input.ident; - + let (impl_generics, type_generics, where_clause) = input.generics.split_for_impl(); + let expanded = quote! { - impl Paginatable for #struct_name { + impl #impl_generics Paginatable for #struct_name #type_generics #where_clause { fn set_cursor(self, cursor: u32) -> Result { // Always accept the cursor since it's non-optional in the setter if cursor < 1 {