aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_db/src/traits
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-03-27 20:51:00 +0000
committerLukas Wirth <[email protected]>2021-03-27 20:51:00 +0000
commit1ef55002c2db4ca68df31306290b019c7fbfb4fb (patch)
tree222f7661669f96792b5b987aba0b26ce07efcf4a /crates/ide_db/src/traits
parent77a447dcda82a9f0eb6e1f04bd4b1dd53a226c65 (diff)
Cleanup ide_db imports
Diffstat (limited to 'crates/ide_db/src/traits')
-rw-r--r--crates/ide_db/src/traits/tests.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ide_db/src/traits/tests.rs b/crates/ide_db/src/traits/tests.rs
index 84bb25505..2a5482024 100644
--- a/crates/ide_db/src/traits/tests.rs
+++ b/crates/ide_db/src/traits/tests.rs
@@ -1,10 +1,11 @@
1use crate::RootDatabase;
2use base_db::{fixture::ChangeFixture, FilePosition}; 1use base_db::{fixture::ChangeFixture, FilePosition};
3use expect_test::{expect, Expect}; 2use expect_test::{expect, Expect};
4use hir::Semantics; 3use hir::Semantics;
5use syntax::ast::{self, AstNode}; 4use syntax::ast::{self, AstNode};
6use test_utils::RangeOrOffset; 5use test_utils::RangeOrOffset;
7 6
7use crate::RootDatabase;
8
8/// Creates analysis from a multi-file fixture, returns positions marked with $0. 9/// Creates analysis from a multi-file fixture, returns positions marked with $0.
9pub(crate) fn position(ra_fixture: &str) -> (RootDatabase, FilePosition) { 10pub(crate) fn position(ra_fixture: &str) -> (RootDatabase, FilePosition) {
10 let change_fixture = ChangeFixture::parse(ra_fixture); 11 let change_fixture = ChangeFixture::parse(ra_fixture);