aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_diagnostics/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_diagnostics/src/lib.rs')
-rw-r--r--crates/ide_diagnostics/src/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ide_diagnostics/src/lib.rs b/crates/ide_diagnostics/src/lib.rs
index 0d98307a2..2a16c73a8 100644
--- a/crates/ide_diagnostics/src/lib.rs
+++ b/crates/ide_diagnostics/src/lib.rs
@@ -28,6 +28,7 @@ mod field_shorthand;
28 28
29use hir::{diagnostics::AnyDiagnostic, Semantics}; 29use hir::{diagnostics::AnyDiagnostic, Semantics};
30use ide_db::{ 30use ide_db::{
31 assists::{Assist, AssistId, AssistKind, AssistResolveStrategy},
31 base_db::{FileId, SourceDatabase}, 32 base_db::{FileId, SourceDatabase},
32 label::Label, 33 label::Label,
33 source_change::SourceChange, 34 source_change::SourceChange,
@@ -42,8 +43,6 @@ use syntax::{
42use text_edit::TextEdit; 43use text_edit::TextEdit;
43use unlinked_file::UnlinkedFile; 44use unlinked_file::UnlinkedFile;
44 45
45use ide_assists::{Assist, AssistId, AssistKind, AssistResolveStrategy};
46
47#[derive(Copy, Clone, Debug, PartialEq)] 46#[derive(Copy, Clone, Debug, PartialEq)]
48pub struct DiagnosticCode(pub &'static str); 47pub struct DiagnosticCode(pub &'static str);
49 48
@@ -265,8 +264,8 @@ fn unresolved_fix(id: &'static str, label: &str, target: TextRange) -> Assist {
265#[cfg(test)] 264#[cfg(test)]
266mod tests { 265mod tests {
267 use expect_test::Expect; 266 use expect_test::Expect;
268 use ide_assists::AssistResolveStrategy;
269 use ide_db::{ 267 use ide_db::{
268 assists::AssistResolveStrategy,
270 base_db::{fixture::WithFixture, SourceDatabaseExt}, 269 base_db::{fixture::WithFixture, SourceDatabaseExt},
271 RootDatabase, 270 RootDatabase,
272 }; 271 };