From 04f0ecb2c35dd3a03f41cc35d7a1367efcdda31b Mon Sep 17 00:00:00 2001 From: Harsh Modi Date: Tue, 2 Jan 2024 15:09:05 -0800 Subject: [PATCH] remove unncessary printfs --- third_party/rust/patches/junit-parser/cdata_parse.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/rust/patches/junit-parser/cdata_parse.patch b/third_party/rust/patches/junit-parser/cdata_parse.patch index 08d1fc5..fe73338 100644 --- a/third_party/rust/patches/junit-parser/cdata_parse.patch +++ b/third_party/rust/patches/junit-parser/cdata_parse.patch @@ -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()),