mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
rollback: use default default
This commit is contained in:
parent
18157eeed1
commit
19eb12b8dd
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ mod field_info {
|
|||
// children field is automatically defaulted to None
|
||||
if name == "children" {
|
||||
builder_attr.default =
|
||||
Some(syn::parse(quote!(::dioxus::core::VNode::empty()).into()).unwrap());
|
||||
Some(syn::parse(quote!(Default::default()).into()).unwrap());
|
||||
}
|
||||
|
||||
// auto detect optional
|
||||
|
|
Loading…
Add table
Reference in a new issue