mirror of https://github.com/rust-lang/cargo
fix(timings): unnecessary backslash when error happens
This commit is contained in:
parent
58b86cd9a3
commit
5949868343
|
@ -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!(
|
||||
|
|
Loading…
Reference in New Issue