From dc2b30e9b6084048e441765b91ef830a836d3dfc Mon Sep 17 00:00:00 2001 From: Muhammad Mominul Huque Date: Fri, 12 Oct 2018 00:07:44 +0600 Subject: Replace HashMap, HashSet with FxHashMap and FxHashSet --- crates/ra_analysis/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/ra_analysis/src/lib.rs') diff --git a/crates/ra_analysis/src/lib.rs b/crates/ra_analysis/src/lib.rs index f6ceb7eb2..849fd93e4 100644 --- a/crates/ra_analysis/src/lib.rs +++ b/crates/ra_analysis/src/lib.rs @@ -11,6 +11,7 @@ extern crate relative_path; extern crate crossbeam_channel; extern crate im; extern crate salsa; +extern crate rustc_hash; mod symbol_index; mod module_map; @@ -23,13 +24,13 @@ mod descriptors; use std::{ sync::Arc, - collections::HashMap, fmt::Debug, }; use relative_path::{RelativePath, RelativePathBuf}; use ra_syntax::{File, TextRange, TextUnit, AtomEdit}; use imp::{AnalysisImpl, AnalysisHostImpl, FileResolverImp}; +use rustc_hash::FxHashMap; pub use ra_editor::{ StructureNode, LineIndex, FileSymbol, @@ -46,7 +47,7 @@ pub struct CrateId(pub u32); #[derive(Debug, Clone, Default)] pub struct CrateGraph { - pub crate_roots: HashMap, + pub crate_roots: FxHashMap, } pub trait FileResolver: Debug + Send + Sync + 'static { -- cgit v1.2.3