partially restore spreading attributes

This commit is contained in:
Evan Almloff committed 2024-01-14 15:21:19 -06:00
1 parent 2470a46511
commit 36e9eb1160
19 files changed
+252 -194

No files matched your search

+2 -2
View File
@@ -61,14 +61,14 @@ impl ToTokens for ImplExtensionAttributes {
quote! { <#impl_name as #name>::#ident }
};
quote! {
fn #ident(self, value: impl IntoAttributeValue<'a>) -> Self {
fn #ident(self, value: impl IntoAttributeValue) -> Self {
let d = #d;
self.push_attribute(d.0, d.1, value, d.2)
}
}
});
tokens.append_all(quote! {
pub trait #extension_name<'a>: HasAttributes<'a> + Sized {
pub trait #extension_name: HasAttributes + Sized {
#(#impls)*
}
});