From c15ebcd84c8bc4e34226595a86fb1897714805fe Mon Sep 17 00:00:00 2001 From: yipinliu Date: Sat, 12 Mar 2022 21:06:33 +0800 Subject: [PATCH] Optimize imports --- crates/ide/src/syntax_highlighting.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index 8f764e3336..e5d4ed8b92 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)]