Skip to content

Commit c2af0c6

Browse files
authored
fix: remove duplicate doc comments in byot macro output (#501)
The byot macro was generating duplicate attributes (including doc comments) because it added #(#attrs)* before #input, but #input already contains all its attributes. This caused doc strings like "Retrieves an assistant." to appear twice as "Retrieves an assistant. Retrieves an assistant." Fixes #345
1 parent edba47d commit c2af0c6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

async-openai-macros/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ pub fn byot(args: TokenStream, item: TokenStream) -> TokenStream {
130130
};
131131

132132
let expanded = quote! {
133-
#(#attrs)*
134133
#input
135134

136135
#(#attrs)*

0 commit comments

Comments
 (0)