Fix a couple warnings

This commit is contained in:
Benjamin Sago 2019-07-13 21:17:48 +01:00
parent 6cd52163f7
commit df9b32c892
3 changed files with 1 additions and 4 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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();