about summary refs log tree commit diff
path: root/compiler/rustc_graphviz
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-13 22:58:58 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2021-12-14 12:40:28 +0100
commit97e844a032c47d4b3e70d2043f809767e437ac24 (patch)
tree6f1fc68faba406c3525cdc884b8cc211a5c54eae /compiler/rustc_graphviz
parent1796de7bb123df3f3d32124ededf1344434f672e (diff)
downloadrust-97e844a032c47d4b3e70d2043f809767e437ac24.tar.gz
rust-97e844a032c47d4b3e70d2043f809767e437ac24.zip
fix clippy::single_char_pattern perf findings
Diffstat (limited to 'compiler/rustc_graphviz')
-rw-r--r--compiler/rustc_graphviz/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_graphviz/src/lib.rs b/compiler/rustc_graphviz/src/lib.rs
index edb8bd503e1..e318090ebe1 100644
--- a/compiler/rustc_graphviz/src/lib.rs
+++ b/compiler/rustc_graphviz/src/lib.rs
@@ -472,7 +472,7 @@ pub trait Labeller<'a> {
 /// 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> {