File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -676,7 +676,7 @@ impl TextInputData {
676
676
}
677
677
678
678
/// Heterogeneous data that depends on the element's type.
679
- #[ derive( Clone ) ]
679
+ #[ derive( Clone , Default ) ]
680
680
pub enum SpecialElementData {
681
681
/// An \<img\> element's image data
682
682
Image ( Box < ImageData > ) ,
@@ -689,6 +689,7 @@ pub enum SpecialElementData {
689
689
/// Checkbox checked state
690
690
CheckboxInput ( bool ) ,
691
691
/// No data (for nodes that don't need any node-specific data)
692
+ #[ default]
692
693
None ,
693
694
}
694
695
@@ -715,12 +716,6 @@ impl std::fmt::Debug for SpecialElementData {
715
716
}
716
717
}
717
718
718
- impl Default for SpecialElementData {
719
- fn default ( ) -> Self {
720
- Self :: None
721
- }
722
- }
723
-
724
719
#[ derive( Clone ) ]
725
720
pub struct ListItemLayout {
726
721
pub marker : Marker ,
You can’t perform that action at this time.
0 commit comments