diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-13 22:58:58 +0100 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-14 12:40:28 +0100 |
| commit | 97e844a032c47d4b3e70d2043f809767e437ac24 (patch) | |
| tree | 6f1fc68faba406c3525cdc884b8cc211a5c54eae /compiler/rustc_graphviz/src | |
| parent | 1796de7bb123df3f3d32124ededf1344434f672e (diff) | |
| download | rust-97e844a032c47d4b3e70d2043f809767e437ac24.tar.gz rust-97e844a032c47d4b3e70d2043f809767e437ac24.zip | |
fix clippy::single_char_pattern perf findings
Diffstat (limited to 'compiler/rustc_graphviz/src')
| -rw-r--r-- | compiler/rustc_graphviz/src/lib.rs | 2 |
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("&", "&").replace("\"", """).replace("<", "<").replace(">", ">") + s.replace('&', "&").replace('\"', """).replace('<', "<").replace('>', ">") } impl<'a> LabelText<'a> { |
