Rust 2018

This commit is contained in:
Roey Darwish Dror
2018-12-09 10:30:41 +02:00
parent 5fd38bfe98
commit 365847a498
4 changed files with 9 additions and 27 deletions

View File

@@ -1,22 +1,3 @@
extern crate console;
extern crate directories;
extern crate env_logger;
extern crate failure;
extern crate failure_derive;
extern crate lazy_static;
extern crate log;
#[cfg(unix)]
extern crate nix;
#[cfg(feature = "self-update")]
extern crate self_update as self_update_crate;
extern crate serde;
extern crate serde_derive;
extern crate shellexpand;
extern crate structopt;
extern crate toml;
extern crate walkdir;
extern crate which;
#[cfg(target_os = "freebsd")]
mod freebsd;
#[cfg(target_os = "linux")]
@@ -48,13 +29,13 @@ use self::config::Config;
use self::error::{Error, ErrorKind};
use self::git::{Git, Repositories};
use self::report::Report;
use self::terminal::*;
use failure::{Fail, ResultExt};
use std::borrow::Cow;
use std::env;
use std::io;
use std::process::exit;
use structopt::StructOpt;
use terminal::*;
fn execute<'a, F, M>(func: F, no_retry: bool) -> Result<Option<(M, bool)>, Error>
where