We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a46943 commit 1893300Copy full SHA for 1893300
1 file changed
packages/blitz-dom/src/node.rs
@@ -676,7 +676,7 @@ impl TextInputData {
676
}
677
678
/// Heterogeneous data that depends on the element's type.
679
-#[derive(Clone)]
+#[derive(Clone, Default)]
680
pub enum SpecialElementData {
681
/// An \<img\> element's image data
682
Image(Box<ImageData>),
@@ -689,6 +689,7 @@ pub enum SpecialElementData {
689
/// Checkbox checked state
690
CheckboxInput(bool),
691
/// No data (for nodes that don't need any node-specific data)
692
+ #[default]
693
None,
694
695
@@ -715,12 +716,6 @@ impl std::fmt::Debug for SpecialElementData {
715
716
717
718
-impl Default for SpecialElementData {
719
- fn default() -> Self {
720
- Self::None
721
- }
722
-}
723
-
724
#[derive(Clone)]
725
pub struct ListItemLayout {
726
pub marker: Marker,
0 commit comments