diff options
| author | yipinliu <ypliu18@gmail.com> | 2022-03-12 21:06:33 +0800 |
|---|---|---|
| committer | yipinliu <ypliu18@gmail.com> | 2022-03-12 21:06:33 +0800 |
| commit | c15ebcd84c8bc4e34226595a86fb1897714805fe (patch) | |
| tree | e149d05be78f27b914d27f1528815131d879ba99 | |
| parent | 0c54921f9398df5d181ade11520072baadb36859 (diff) | |
| download | rust-c15ebcd84c8bc4e34226595a86fb1897714805fe.tar.gz rust-c15ebcd84c8bc4e34226595a86fb1897714805fe.zip | |
Optimize imports
| -rw-r--r-- | crates/ide/src/syntax_highlighting.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index 8f764e33367..e5d4ed8b92a 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs @@ -17,21 +17,17 @@ use hir::{InFile, Name, Semantics}; use ide_db::RootDatabase; use rustc_hash::FxHashMap; use syntax::{ - ast::{self}, - AstNode, AstToken, NodeOrToken, - SyntaxKind::*, - SyntaxNode, TextRange, WalkEvent, T, + ast, AstNode, AstToken, NodeOrToken, SyntaxKind::*, SyntaxNode, TextRange, WalkEvent, T, }; use crate::{ syntax_highlighting::{ - format::highlight_format_string, highlights::Highlights, macro_::MacroHighlighter, - tags::Highlight, + escape::highlight_escape_string, format::highlight_format_string, highlights::Highlights, + macro_::MacroHighlighter, tags::Highlight, }, FileId, HlMod, HlTag, }; -use crate::syntax_highlighting::escape::highlight_escape_string; pub(crate) use html::highlight_as_html; #[derive(Debug, Clone, Copy)] |
