mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
fix clippy::single_char_pattern
This commit is contained in:
parent
7912e33ed6
commit
1f70886b15
10 changed files with 22 additions and 22 deletions
|
@ -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 = "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue