Skip to content

Commit

Permalink
remove unncessary printfs
Browse files Browse the repository at this point in the history
  • Loading branch information
DolceTriade committed Jan 2, 2024
1 parent 8b9d2dd commit 04f0ecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/rust/patches/junit-parser/cdata_parse.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ index 178abcf..96af0b1 100644
Ok(XMLEvent::End(ref e)) if e.name() == orig.name() => break,
Ok(XMLEvent::Text(e)) => {
- res = Some(e.unescape()?.to_string());
+ println!("{:#?}", e);
+
+ match res.as_mut() {
+ Some(res) => res.push_str(&e.unescape()?.to_string()),
+ None => res = Some(e.unescape()?.to_string()),
+ }
+ }
+ Ok(XMLEvent::CData(e)) => {
+ println!("{:#?}", e);
+
+ match res.as_mut() {
+ Some(res) => res.push_str(&String::from_utf8_lossy(&e)),
+ None => res = Some(String::from_utf8_lossy(&e).to_string()),
Expand Down

0 comments on commit 04f0ecb

Please sign in to comment.