Skip to content

Commit

Permalink
Apply new way of configuring quick_xml Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-c committed Sep 25, 2024
1 parent 9733b6f commit 7f8570c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,9 @@ pub fn parse_jacoco_xml_report<T: Read>(
xml_reader: BufReader<T>,
) -> Result<Vec<(String, CovResult)>, ParserError> {
let mut parser = Reader::from_reader(xml_reader);
parser.expand_empty_elements(true).trim_text(false);
let config = parser.config_mut();
config.expand_empty_elements = true;
config.trim_text(false);

let mut results = Vec::new();
let mut buf = Vec::new();
Expand Down

0 comments on commit 7f8570c

Please sign in to comment.