Skip to content

Commit c2030b2

Browse files
committed
match on chars instead of &strs for .split() or .strip_prefix()
1 parent a512e21 commit c2030b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/src/formatters/junit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn str_to_cdata(s: &str) -> String {
3232
let escaped_output = s.replace("]]>", "]]]]><![CDATA[>");
3333
let escaped_output = escaped_output.replace("<?", "<]]><![CDATA[?");
3434
// We also smuggle newlines as &#xa so as to keep all the output on one line
35-
let escaped_output = escaped_output.replace("\n", "]]>&#xA;<![CDATA[");
35+
let escaped_output = escaped_output.replace('\n', "]]>&#xA;<![CDATA[");
3636
// Prune empty CDATA blocks resulting from any escaping
3737
let escaped_output = escaped_output.replace("<![CDATA[]]>", "");
3838
format!("<![CDATA[{}]]>", escaped_output)

0 commit comments

Comments
 (0)