aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-12 01:45:22 +0200
committerMartin Fischer <martin@push-f.com>2023-08-19 06:41:55 +0200
commitd345a368045ba898049ac643e87d1f38f77d988c (patch)
tree7b7d406aa04946024d9c8a2aabebd951338855c1 /src
parentd789a923f26bb2cf6fad295fa97f4303ea9a67a3 (diff)
break!: remove Default impl for Attribute
Diffstat (limited to 'src')
-rw-r--r--src/emitter.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/emitter.rs b/src/emitter.rs
index 9781002..be712df 100644
--- a/src/emitter.rs
+++ b/src/emitter.rs
@@ -394,7 +394,8 @@ impl<R, S: Span<R>> Emitter<R> for DefaultEmitter<R, S> {
String::new(),
Attribute {
name_span: S::from_reader(reader),
- ..Default::default()
+ value: String::new(),
+ value_span: S::default(),
},
));
}
@@ -489,7 +490,7 @@ pub struct StartTag<S> {
}
/// A HTML attribute value (plus spans).
-#[derive(Debug, Default, Eq, PartialEq)]
+#[derive(Debug, Eq, PartialEq)]
pub struct Attribute<S> {
/// The value of the attribute.
pub value: String,