diff --git a/src/main.rs b/src/main.rs index 65bb91e1..e866b586 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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")] diff --git a/src/utils.rs b/src/utils.rs index d3acea8c..1a04c434 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -28,7 +28,7 @@ where Self: Sized, { fn if_exists(self) -> Option; - fn is_descendant_of(&self, &Path) -> bool; + fn is_descendant_of(&self, ancestor: &Path) -> bool; } impl PathExt for PathBuf {