Fix some stuff for Rust 2018

This commit is contained in:
Roey Darwish Dror
2018-08-22 10:43:32 +03:00
parent 2802679939
commit 056a49bc50
2 changed files with 7 additions and 7 deletions

View File

@@ -34,16 +34,16 @@ mod terminal;
mod utils;
mod vim;
use self::config::Config;
use self::git::{Git, Repositories};
use self::report::{Report, Reporter};
use self::steps::*;
use self::terminal::Terminal;
use self::utils::PathExt;
use clap::{App, Arg};
use config::Config;
use failure::Error;
use git::{Git, Repositories};
use report::{Report, Reporter};
use std::env;
use std::process::exit;
use steps::*;
use terminal::Terminal;
use utils::PathExt;
#[derive(Fail, Debug)]
#[fail(display = "A step failed")]

View File

@@ -28,7 +28,7 @@ where
Self: Sized,
{
fn if_exists(self) -> Option<Self>;
fn is_descendant_of(&self, &Path) -> bool;
fn is_descendant_of(&self, ancestor: &Path) -> bool;
}
impl PathExt for PathBuf {