Skip to content

Commit 4cdbddb

Browse files
authored
add non-exhaustive to the derived props in #[component] (#5422)
1 parent 19360ea commit 4cdbddb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/core-macro/src/component.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ impl ComponentBody {
245245

246246
let item_struct = parse_quote! {
247247
#[derive(Props)]
248+
#[non_exhaustive]
248249
#[allow(non_camel_case_types)]
249250
#vis struct #struct_ident #generics #where_clause {
250251
#(#struct_fields),*

0 commit comments

Comments
 (0)