Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/test_db.rs')
-rw-r--r--crates/hir-ty/src/test_db.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/crates/hir-ty/src/test_db.rs b/crates/hir-ty/src/test_db.rs
index 7525106fd0..ca96a8d172 100644
--- a/crates/hir-ty/src/test_db.rs
+++ b/crates/hir-ty/src/test_db.rs
@@ -1,9 +1,7 @@
//! Database used for testing `hir`.
use std::{
- fmt,
- hash::BuildHasherDefault,
- panic,
+ fmt, panic,
sync::{Arc, Mutex},
};
@@ -13,8 +11,7 @@ use base_db::{
};
use hir_def::{db::DefDatabase, ModuleId};
use hir_expand::db::ExpandDatabase;
-use indexmap::IndexSet;
-use rustc_hash::FxHasher;
+use rustc_hash::FxHashSet;
use stdx::hash::NoHashHashMap;
use syntax::TextRange;
use test_utils::extract_annotations;
@@ -85,10 +82,7 @@ impl FileLoader for TestDB {
fn resolve_path(&self, path: AnchoredPath<'_>) -> Option<FileId> {
FileLoaderDelegate(self).resolve_path(path)
}
- fn relevant_crates(
- &self,
- file_id: FileId,
- ) -> Arc<IndexSet<CrateId, BuildHasherDefault<FxHasher>>> {
+ fn relevant_crates(&self, file_id: FileId) -> Arc<FxHashSet<CrateId>> {
FileLoaderDelegate(self).relevant_crates(file_id)
}
}