fix clippy::single_char_pattern
This commit is contained in:
@@ -47,7 +47,7 @@ pub(crate) fn highlight_as_html(db: &RootDatabase, file_id: FileId, rainbow: boo
|
||||
|
||||
//FIXME: like, real html escaping
|
||||
fn html_escape(text: &str) -> String {
|
||||
text.replace("<", "<").replace(">", ">")
|
||||
text.replace('<', "<").replace('>', ">")
|
||||
}
|
||||
|
||||
const STYLE: &str = "
|
||||
|
||||
Reference in New Issue
Block a user