fix(timings): unnecessary backslash when error happens

This commit is contained in:
Weihang Lo 2023-11-07 22:06:35 -05:00
parent 58b86cd9a3
commit 5949868343
No known key found for this signature in database
GPG Key ID: D7DBF189825E82E7
1 changed files with 1 additions and 8 deletions

View File

@ -380,14 +380,7 @@ impl<'cfg> Timings<'cfg> {
.unwrap_or_else(|_| "n/a".into());
let rustc_info = render_rustc_info(bcx);
let error_msg = match error {
Some(e) => format!(
r#"\
<tr>
<td class="error-text">Error:</td><td>{}</td>
</tr>
"#,
e
),
Some(e) => format!(r#"<tr><td class="error-text">Error:</td><td>{e}</td></tr>"#),
None => "".to_string(),
};
write!(