Get rid of failure: ra_batch ra_cli

This commit is contained in:
Muhammad Mominul Huque 2019-06-15 13:24:02 +06:00
parent 9709bd39ca
commit f032eeb05f
No known key found for this signature in database
GPG key ID: 37AF141540DE557D
7 changed files with 7 additions and 13 deletions

View file

@ -1,6 +1,6 @@
mod analysis_stats;
use std::io::Read;
use std::{io::Read, error::Error};
use clap::{App, Arg, SubCommand};
use ra_ide_api::{file_structure, Analysis};
@ -8,7 +8,7 @@ use ra_syntax::{SourceFile, TreeArc, AstNode};
use flexi_logger::Logger;
use ra_prof::profile;
type Result<T> = ::std::result::Result<T, failure::Error>;
type Result<T> = ::std::result::Result<T, Box<dyn Error + Send + Sync>>;
fn main() -> Result<()> {
Logger::with_env().start()?;