mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-25 21:37:33 +00:00
Fix a couple warnings
This commit is contained in:
parent
6cd52163f7
commit
df9b32c892
@ -53,7 +53,7 @@ impl FromIterator<PathBuf> 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;
|
||||
|
@ -123,7 +123,6 @@ impl Options {
|
||||
where I: IntoIterator<Item=&'args OsString>,
|
||||
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::<Vec<OsString>>();
|
||||
let mut result = Vec::new();
|
||||
|
@ -143,7 +143,6 @@ impl<'a> AsRef<File<'a>> for Egg<'a> {
|
||||
|
||||
impl<'a> Render<'a> {
|
||||
pub fn render<W: Write>(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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user