]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_graphviz/src/lib.rs
Rollup merge of #92742 - GuillaumeGomez:missing-suffix-sidebar-items, r=notriddle
[rust.git] / compiler / rustc_graphviz / src / lib.rs
index edb8bd503e1d01602a32bcb182e0296a475aeb0a..e318090ebe15aec658917b35b2c4b903589f3a01 100644 (file)
@@ -472,7 +472,7 @@ fn edge_style(&'a self, _e: &Self::Edge) -> Style {
 /// Escape tags in such a way that it is suitable for inclusion in a
 /// Graphviz HTML label.
 pub fn escape_html(s: &str) -> String {
-    s.replace("&", "&amp;").replace("\"", "&quot;").replace("<", "&lt;").replace(">", "&gt;")
+    s.replace('&', "&amp;").replace('\"', "&quot;").replace('<', "&lt;").replace('>', "&gt;")
 }
 
 impl<'a> LabelText<'a> {