aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_batch
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-06-15 10:45:55 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-06-15 10:45:55 +0100
commit257a15b93942a1e38e561576af471a6a1e63bcff (patch)
tree3586eda54dab85be6d24325e597a1d8f060e36b7 /crates/ra_batch
parent9dbf985df5515f4b9b40a7dcf74f916fa8d57ee3 (diff)
parent408e173bb9737f9484ca773ee57cc791f5c57e16 (diff)
Merge #1404
1404: Fight down failures! r=matklad a=mominul issue #1400 Now only `ra_tools` crate depends on `failure`, should I also fight those? :grin: Co-authored-by: Muhammad Mominul Huque <[email protected]>
Diffstat (limited to 'crates/ra_batch')
-rw-r--r--crates/ra_batch/Cargo.toml2
-rw-r--r--crates/ra_batch/src/lib.rs6
2 files changed, 2 insertions, 6 deletions
diff --git a/crates/ra_batch/Cargo.toml b/crates/ra_batch/Cargo.toml
index 3037e27c4..8bf085bbf 100644
--- a/crates/ra_batch/Cargo.toml
+++ b/crates/ra_batch/Cargo.toml
@@ -8,8 +8,6 @@ authors = ["rust-analyzer developers"]
8log = "0.4.5" 8log = "0.4.5"
9rustc-hash = "1.0" 9rustc-hash = "1.0"
10 10
11failure = "0.1.4"
12
13ra_vfs = "0.2.0" 11ra_vfs = "0.2.0"
14ra_syntax = { path = "../ra_syntax" } 12ra_syntax = { path = "../ra_syntax" }
15ra_db = { path = "../ra_db" } 13ra_db = { path = "../ra_db" }
diff --git a/crates/ra_batch/src/lib.rs b/crates/ra_batch/src/lib.rs
index c59821f44..96b32d9fe 100644
--- a/crates/ra_batch/src/lib.rs
+++ b/crates/ra_batch/src/lib.rs
@@ -1,8 +1,6 @@
1mod vfs_filter; 1mod vfs_filter;
2 2
3use std::sync::Arc; 3use std::{sync::Arc, path::Path, collections::HashSet, error::Error};
4use std::path::Path;
5use std::collections::HashSet;
6 4
7use rustc_hash::FxHashMap; 5use rustc_hash::FxHashMap;
8 6
@@ -14,7 +12,7 @@ use ra_project_model::ProjectWorkspace;
14use ra_vfs::{Vfs, VfsChange}; 12use ra_vfs::{Vfs, VfsChange};
15use vfs_filter::IncludeRustFiles; 13use vfs_filter::IncludeRustFiles;
16 14
17type Result<T> = std::result::Result<T, failure::Error>; 15type Result<T> = std::result::Result<T, Box<dyn Error + Send + Sync>>;
18 16
19#[salsa::database( 17#[salsa::database(
20 ra_db::SourceDatabaseStorage, 18 ra_db::SourceDatabaseStorage,