fix: generics on impl From slot to Vec<slot> (#946)

This commit is contained in:
yuuma03 2023-04-24 21:03:03 -03:00 committed by GitHub
parent 78d6d312f8
commit 234861a156
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,8 +81,8 @@ impl ToTokens for Model {
#prop_builder_fields
}
impl From<#name> for Vec<#name> {
fn from(value: #name) -> Self {
impl #generics From<#name #generics> for Vec<#name #generics> #where_clause {
fn from(value: #name #generics) -> Self {
vec![value]
}
}