diff --git a/src/fs/feature/git.rs b/src/fs/feature/git.rs index 40da73e..e07ce91 100644 --- a/src/fs/feature/git.rs +++ b/src/fs/feature/git.rs @@ -53,7 +53,7 @@ impl FromIterator for GitCache { else { match GitRepo::discover(path) { Ok(r) => { - if let Some(mut r2) = git.repos.iter_mut().find(|e| e.has_workdir(&r.workdir)) { + if let Some(r2) = git.repos.iter_mut().find(|e| e.has_workdir(&r.workdir)) { debug!("Adding to existing repo (workdir matches with {:?})", r2.workdir); r2.extra_paths.push(r.original_path); continue; diff --git a/src/options/mod.rs b/src/options/mod.rs index 65f67d5..6231ef4 100644 --- a/src/options/mod.rs +++ b/src/options/mod.rs @@ -123,7 +123,6 @@ impl Options { where I: IntoIterator, V: Vars { use options::parser::{Matches, Strictness}; - use options::vars; let strictness = match vars.get(vars::EXA_STRICT) { None => Strictness::UseLastArguments, @@ -191,7 +190,6 @@ pub mod test { { use self::Strictnesses::*; use options::parser::{Args, Strictness}; - use std::ffi::OsString; let bits = inputs.into_iter().map(|&o| os(o)).collect::>(); let mut result = Vec::new(); diff --git a/src/output/details.rs b/src/output/details.rs index 557f784..5523753 100644 --- a/src/output/details.rs +++ b/src/output/details.rs @@ -143,7 +143,6 @@ impl<'a> AsRef> for Egg<'a> { impl<'a> Render<'a> { pub fn render(self, mut git: Option<&'a GitCache>, ignore: Option<&'a IgnoreCache>, w: &mut W) -> IOResult<()> { - use num_cpus; let mut pool = Pool::new(num_cpus::get() as u32); let mut rows = Vec::new();