diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-23 10:12:40 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2023-07-23 10:13:41 +0200 |
| commit | 7a7708904bf69c8f85a41efea1db4cd5ebc6fecb (patch) | |
| tree | 68f28315b7128a6fdcf28f8d851ba66028fca7b8 /library/test/src | |
| parent | cec34a43b1b14f4e39363f3b283d7ac4f593ee81 (diff) | |
| download | rust-7a7708904bf69c8f85a41efea1db4cd5ebc6fecb.tar.gz rust-7a7708904bf69c8f85a41efea1db4cd5ebc6fecb.zip | |
match on chars instead of &strs for .split() or .strip_prefix()
Diffstat (limited to 'library/test/src')
| -rw-r--r-- | library/test/src/formatters/junit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/test/src/formatters/junit.rs b/library/test/src/formatters/junit.rs index 9f5bf24367e..a211ebf1ded 100644 --- a/library/test/src/formatters/junit.rs +++ b/library/test/src/formatters/junit.rs @@ -32,7 +32,7 @@ fn str_to_cdata(s: &str) -> String { let escaped_output = s.replace("]]>", "]]]]><![CDATA[>"); let escaped_output = escaped_output.replace("<?", "<]]><![CDATA[?"); // We also smuggle newlines as 
 so as to keep all the output on one line - let escaped_output = escaped_output.replace("\n", "]]>
<![CDATA["); + let escaped_output = escaped_output.replace('\n', "]]>
<![CDATA["); // Prune empty CDATA blocks resulting from any escaping let escaped_output = escaped_output.replace("<![CDATA[]]>", ""); format!("<![CDATA[{}]]>", escaped_output) |
