Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/syntax_highlighting/inject.rs')
-rw-r--r--crates/ide/src/syntax_highlighting/inject.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/crates/ide/src/syntax_highlighting/inject.rs b/crates/ide/src/syntax_highlighting/inject.rs
index 1be90ad6a1..0998e14c87 100644
--- a/crates/ide/src/syntax_highlighting/inject.rs
+++ b/crates/ide/src/syntax_highlighting/inject.rs
@@ -3,21 +3,20 @@
use std::mem;
use either::Either;
-use hir::{sym, HirFileId, InFile, Semantics};
+use hir::{EditionedFileId, HirFileId, InFile, Semantics, sym};
use ide_db::{
- active_parameter::ActiveParameter, defs::Definition, documentation::docs_with_rangemap,
- rust_doc::is_rust_fence, SymbolKind,
+ SymbolKind, active_parameter::ActiveParameter, defs::Definition,
+ documentation::docs_with_rangemap, rust_doc::is_rust_fence,
};
-use span::EditionedFileId;
use syntax::{
- ast::{self, AstNode, IsString, QuoteOffsets},
AstToken, NodeOrToken, SyntaxNode, TextRange, TextSize,
+ ast::{self, AstNode, IsString, QuoteOffsets},
};
use crate::{
- doc_links::{doc_attributes, extract_definitions_from_docs, resolve_doc_path_for_def},
- syntax_highlighting::{highlights::Highlights, injector::Injector, HighlightConfig},
Analysis, HlMod, HlRange, HlTag, RootDatabase,
+ doc_links::{doc_attributes, extract_definitions_from_docs, resolve_doc_path_for_def},
+ syntax_highlighting::{HighlightConfig, highlights::Highlights, injector::Injector},
};
pub(super) fn ra_fixture(
@@ -161,7 +160,7 @@ pub(super) fn doc_comment(
let mut new_comments = Vec::new();
let mut string;
- for attr in attributes.by_key(&sym::doc).attrs() {
+ for attr in attributes.by_key(sym::doc).attrs() {
let InFile { file_id, value: src } = attrs_source_map.source_of(attr);
if file_id != src_file_id {
continue;