mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Get rid of failure: ra_batch ra_cli
This commit is contained in:
parent
9709bd39ca
commit
f032eeb05f
7 changed files with 7 additions and 13 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue