diff options
Diffstat (limited to 'crates/ra_cli/src/load_cargo.rs')
-rw-r--r-- | crates/ra_cli/src/load_cargo.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/ra_cli/src/load_cargo.rs b/crates/ra_cli/src/load_cargo.rs index 2d6433f18..b9a4e6aba 100644 --- a/crates/ra_cli/src/load_cargo.rs +++ b/crates/ra_cli/src/load_cargo.rs | |||
@@ -1,8 +1,6 @@ | |||
1 | //! FIXME: write short doc here | 1 | //! FIXME: write short doc here |
2 | 2 | ||
3 | use std::{collections::HashSet, error::Error, path::Path}; | 3 | use std::{collections::HashSet, path::Path}; |
4 | |||
5 | use rustc_hash::FxHashMap; | ||
6 | 4 | ||
7 | use crossbeam_channel::{unbounded, Receiver}; | 5 | use crossbeam_channel::{unbounded, Receiver}; |
8 | use ra_db::{CrateGraph, FileId, SourceRootId}; | 6 | use ra_db::{CrateGraph, FileId, SourceRootId}; |
@@ -10,8 +8,9 @@ use ra_ide::{AnalysisChange, AnalysisHost, FeatureFlags}; | |||
10 | use ra_project_model::{get_rustc_cfg_options, PackageRoot, ProjectWorkspace}; | 8 | use ra_project_model::{get_rustc_cfg_options, PackageRoot, ProjectWorkspace}; |
11 | use ra_vfs::{RootEntry, Vfs, VfsChange, VfsTask, Watch}; | 9 | use ra_vfs::{RootEntry, Vfs, VfsChange, VfsTask, Watch}; |
12 | use ra_vfs_glob::RustPackageFilterBuilder; | 10 | use ra_vfs_glob::RustPackageFilterBuilder; |
11 | use rustc_hash::FxHashMap; | ||
13 | 12 | ||
14 | type Result<T> = std::result::Result<T, Box<dyn Error + Send + Sync>>; | 13 | use anyhow::Result; |
15 | 14 | ||
16 | fn vfs_file_to_id(f: ra_vfs::VfsFile) -> FileId { | 15 | fn vfs_file_to_id(f: ra_vfs::VfsFile) -> FileId { |
17 | FileId(f.0) | 16 | FileId(f.0) |