Integrate "SmartDefault" as "AutoDefault" macro

This commit is contained in:
Manuel Cillero 2024-02-27 21:57:16 +01:00
parent cb38145bf5
commit 9e4f593dbd
51 changed files with 387 additions and 103 deletions

View file

@ -7,7 +7,7 @@ type Content = ArcTypedComponent<Html>;
type SubmenuItems = ArcTypedComponent<Submenu>;
type MegamenuGroups = ArcTypedComponent<Megamenu>;
#[derive(SmartDefault)]
#[derive(AutoDefault)]
pub enum ItemType {
#[default]
Void,
@ -22,7 +22,7 @@ pub enum ItemType {
// Item.
#[rustfmt::skip]
#[derive(SmartDefault)]
#[derive(AutoDefault)]
pub struct Item {
weight : Weight,
renderable : Renderable,