Fix deriving props with a where clause and an owner (#2674)

This commit is contained in:
Evan Almloff authored and GitHub committed 2024-07-22 13:48:39 -07:00
1 parent aa4a395884
commit 40f936d56a
2 files changed
+66 -1

No files matched your search

+2 -1
View File
@@ -1397,12 +1397,13 @@ Finally, call `.build()` to create the instance of `{name}`.
let original_name = &self.name;
let vis = &self.vis;
let generics_with_bounds = &self.generics;
let where_clause = &self.generics.where_clause;
quote! {
#[doc(hidden)]
#[allow(dead_code, non_camel_case_types, missing_docs)]
#[derive(Clone)]
#vis struct #name #generics_with_bounds {
#vis struct #name #generics_with_bounds #where_clause {
inner: #original_name #ty_generics,
owner: Owner,
}