From f032eeb05f0b7d77e30cd6c5eea016cc5d649e3f Mon Sep 17 00:00:00 2001 From: Muhammad Mominul Huque Date: Sat, 15 Jun 2019 13:24:02 +0600 Subject: Get rid of failure: ra_batch ra_cli --- crates/ra_batch/Cargo.toml | 2 -- crates/ra_batch/src/lib.rs | 7 +++---- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'crates/ra_batch') 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"] log = "0.4.5" rustc-hash = "1.0" -failure = "0.1.4" - ra_vfs = "0.2.0" ra_syntax = { path = "../ra_syntax" } ra_db = { path = "../ra_db" } diff --git a/crates/ra_batch/src/lib.rs b/crates/ra_batch/src/lib.rs index c59821f44..35e783b14 100644 --- a/crates/ra_batch/src/lib.rs +++ b/crates/ra_batch/src/lib.rs @@ -1,8 +1,7 @@ mod vfs_filter; -use std::sync::Arc; -use std::path::Path; -use std::collections::HashSet; +use std::{sync::Arc, path::Path, collections::HashSet, error::Error}; + use rustc_hash::FxHashMap; @@ -14,7 +13,7 @@ use ra_project_model::ProjectWorkspace; use ra_vfs::{Vfs, VfsChange}; use vfs_filter::IncludeRustFiles; -type Result = std::result::Result; +type Result = std::result::Result>; #[salsa::database( ra_db::SourceDatabaseStorage, -- cgit v1.2.3