Fix uninlined_format_args
for some compiler crates
Convert all the crates that have had their diagnostic migration completed (except save_analysis because that will be deleted soon and apfloat because of the licensing problem).
This commit is contained in:
parent
1d284af117
commit
fd7a159710
91 changed files with 287 additions and 329 deletions
|
@ -516,7 +516,7 @@ impl<'a> LabelText<'a> {
|
|||
match *self {
|
||||
LabelStr(ref s) => format!("\"{}\"", s.escape_default()),
|
||||
EscStr(ref s) => format!("\"{}\"", LabelText::escape_str(s)),
|
||||
HtmlStr(ref s) => format!("<{}>", s),
|
||||
HtmlStr(ref s) => format!("<{s}>"),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -622,7 +622,7 @@ where
|
|||
if let Some(fontname) = options.iter().find_map(|option| {
|
||||
if let RenderOption::Fontname(fontname) = option { Some(fontname) } else { None }
|
||||
}) {
|
||||
font = format!(r#"fontname="{}""#, fontname);
|
||||
font = format!(r#"fontname="{fontname}""#);
|
||||
graph_attrs.push(&font[..]);
|
||||
content_attrs.push(&font[..]);
|
||||
}
|
||||
|
@ -635,8 +635,8 @@ where
|
|||
if !(graph_attrs.is_empty() && content_attrs.is_empty()) {
|
||||
writeln!(w, r#" graph[{}];"#, graph_attrs.join(" "))?;
|
||||
let content_attrs_str = content_attrs.join(" ");
|
||||
writeln!(w, r#" node[{}];"#, content_attrs_str)?;
|
||||
writeln!(w, r#" edge[{}];"#, content_attrs_str)?;
|
||||
writeln!(w, r#" node[{content_attrs_str}];"#)?;
|
||||
writeln!(w, r#" edge[{content_attrs_str}];"#)?;
|
||||
}
|
||||
|
||||
let mut text = Vec::new();
|
||||
|
@ -649,7 +649,7 @@ where
|
|||
write!(text, "{}", id.as_slice()).unwrap();
|
||||
|
||||
if !options.contains(&RenderOption::NoNodeLabels) {
|
||||
write!(text, "[label={}]", escaped).unwrap();
|
||||
write!(text, "[label={escaped}]").unwrap();
|
||||
}
|
||||
|
||||
let style = g.node_style(n);
|
||||
|
@ -678,7 +678,7 @@ where
|
|||
write!(text, "{} -> {}", source_id.as_slice(), target_id.as_slice()).unwrap();
|
||||
|
||||
if !options.contains(&RenderOption::NoEdgeLabels) {
|
||||
write!(text, "[label={}]", escaped_label).unwrap();
|
||||
write!(text, "[label={escaped_label}]").unwrap();
|
||||
}
|
||||
|
||||
let style = g.edge_style(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue