Skip to content

Commit

Permalink
Follow up for #620: pass correct expand_empty_elements to the new s…
Browse files Browse the repository at this point in the history
…erializers
  • Loading branch information
Mingun committed Jun 30, 2023
1 parent 05059fd commit 3ab7f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/se/content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl<'w, 'i, W: Write> ContentSerializer<'w, 'i, W> {
level: self.level,
indent: self.indent.borrow(),
write_indent: self.write_indent,
expand_empty_elements: false,
expand_empty_elements: self.expand_empty_elements,
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/se/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ impl<'w, 'k, W: Write> Struct<'w, 'k, W> {
level: self.ser.ser.level,
indent: self.ser.ser.indent.borrow(),
write_indent: true,
expand_empty_elements: false,
expand_empty_elements: self.ser.ser.expand_empty_elements,
};

if key == TEXT_KEY {
Expand Down

0 comments on commit 3ab7f64

Please sign in to comment.