fix clippy::single_char_pattern perf findings
This commit is contained in:
parent
1796de7bb1
commit
97e844a032
19 changed files with 36 additions and 36 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue