Skip to content

Commit

Permalink
fix(timings): unnecessary backslash when error happens
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanglo committed Nov 8, 2023
1 parent 58b86cd commit 5949868
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/cargo/core/compiler/timings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 5949868

Please sign in to comment.