diff options
author | Muhammad Mominul Huque <[email protected]> | 2019-06-15 08:24:02 +0100 |
---|---|---|
committer | Muhammad Mominul Huque <[email protected]> | 2019-06-15 08:24:02 +0100 |
commit | f032eeb05f0b7d77e30cd6c5eea016cc5d649e3f (patch) | |
tree | c186b6462d1b54a3a7e5ac73033611edb3db5ca9 /crates/ra_cli | |
parent | 9709bd39ca8a564d517372ee33304d34ac0b09bf (diff) |
Get rid of failure: ra_batch ra_cli
Diffstat (limited to 'crates/ra_cli')
-rw-r--r-- | crates/ra_cli/Cargo.toml | 1 | ||||
-rw-r--r-- | crates/ra_cli/src/main.rs | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_cli/Cargo.toml b/crates/ra_cli/Cargo.toml index 3117f4fda..57bd0c3d7 100644 --- a/crates/ra_cli/Cargo.toml +++ b/crates/ra_cli/Cargo.toml | |||
@@ -7,7 +7,6 @@ publish = false | |||
7 | 7 | ||
8 | [dependencies] | 8 | [dependencies] |
9 | clap = "2.32.0" | 9 | clap = "2.32.0" |
10 | failure = "0.1.4" | ||
11 | join_to_string = "0.1.1" | 10 | join_to_string = "0.1.1" |
12 | flexi_logger = "0.11.0" | 11 | flexi_logger = "0.11.0" |
13 | indicatif = "0.11.0" | 12 | indicatif = "0.11.0" |
diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs index c9ca13bbc..04370539a 100644 --- a/crates/ra_cli/src/main.rs +++ b/crates/ra_cli/src/main.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | mod analysis_stats; | 1 | mod analysis_stats; |
2 | 2 | ||
3 | use std::io::Read; | 3 | use std::{io::Read, error::Error}; |
4 | 4 | ||
5 | use clap::{App, Arg, SubCommand}; | 5 | use clap::{App, Arg, SubCommand}; |
6 | use ra_ide_api::{file_structure, Analysis}; | 6 | use ra_ide_api::{file_structure, Analysis}; |
@@ -8,7 +8,7 @@ use ra_syntax::{SourceFile, TreeArc, AstNode}; | |||
8 | use flexi_logger::Logger; | 8 | use flexi_logger::Logger; |
9 | use ra_prof::profile; | 9 | use ra_prof::profile; |
10 | 10 | ||
11 | type Result<T> = ::std::result::Result<T, failure::Error>; | 11 | type Result<T> = ::std::result::Result<T, Box<dyn Error + Send + Sync>>; |
12 | 12 | ||
13 | fn main() -> Result<()> { | 13 | fn main() -> Result<()> { |
14 | Logger::with_env().start()?; | 14 | Logger::with_env().start()?; |