Skip to content

Commit 4270265

Browse files
committed
Auto merge of #12934 - weihanglo:fix-timings, r=epage
fix(timings): unnecessary backslash when error happens
2 parents 7046d99 + 5949868 commit 4270265

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/cargo/core/compiler/timings.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,7 @@ impl<'cfg> Timings<'cfg> {
380380
.unwrap_or_else(|_| "n/a".into());
381381
let rustc_info = render_rustc_info(bcx);
382382
let error_msg = match error {
383-
Some(e) => format!(
384-
r#"\
385-
<tr>
386-
<td class="error-text">Error:</td><td>{}</td>
387-
</tr>
388-
"#,
389-
e
390-
),
383+
Some(e) => format!(r#"<tr><td class="error-text">Error:</td><td>{e}</td></tr>"#),
391384
None => "".to_string(),
392385
};
393386
write!(

0 commit comments

Comments
 (0)