fix bounds on generated element extensions

This commit is contained in:
Evan Almloff committed 2023-09-22 09:24:00 -05:00
1 parent 0e0819d284
commit 5ed116b060
2 files changed
+29 -5

No files matched your search

+2 -2
View File
@@ -56,7 +56,7 @@ impl ToTokens for ImplExtensionAttributes {
let defs = self.attrs.iter().map(|ident| {
quote! {
fn #ident(self, value: impl IntoAttributeValue<'a> + 'static) -> Self;
fn #ident(self, value: impl IntoAttributeValue<'a>) -> Self;
}
});
let impls = self.attrs.iter().map(|ident| {
@@ -66,7 +66,7 @@ impl ToTokens for ImplExtensionAttributes {
quote! { <#impl_name as #name>::#ident }
};
quote! {
fn #ident(self, value: impl IntoAttributeValue<'a> + 'static) -> Self {
fn #ident(self, value: impl IntoAttributeValue<'a>) -> Self {
let d = #d;
self.push_attribute(d.0, d.1, value, d.2)
}