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/tests/tests.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/ra_analysis/tests') diff --git a/crates/ra_analysis/tests/tests.rs b/crates/ra_analysis/tests/tests.rs index 334dc5e48..a886cd0ff 100644 --- a/crates/ra_analysis/tests/tests.rs +++ b/crates/ra_analysis/tests/tests.rs @@ -1,12 +1,13 @@ extern crate relative_path; extern crate ra_analysis; +extern crate rustc_hash; extern crate test_utils; use std::{ sync::Arc, - collections::HashMap, }; +use rustc_hash::FxHashMap; use relative_path::{RelativePath, RelativePathBuf}; use ra_analysis::{Analysis, AnalysisHost, FileId, FileResolver, JobHandle, CrateGraph, CrateId}; use test_utils::assert_eq_dbg; @@ -131,7 +132,7 @@ fn test_resolve_crate_root() { let crate_graph = CrateGraph { crate_roots: { - let mut m = HashMap::new(); + let mut m = FxHashMap::default(); m.insert(CrateId(1), FileId(1)); m }, -- cgit v1.2.3