diff options
Diffstat (limited to 'src/emitter.rs')
-rw-r--r-- | src/emitter.rs | 5 |
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, |