From 7b1ee01eb5e2569bdc8a88e8efb2290fdc59feb5 Mon Sep 17 00:00:00 2001 From: Martin Lindhe Date: Tue, 31 Oct 2017 06:24:31 +0100 Subject: [PATCH] adjust some spelling --- src/options/filter.rs | 2 +- src/options/mod.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/options/filter.rs b/src/options/filter.rs index c22df93..ea09838 100644 --- a/src/options/filter.rs +++ b/src/options/filter.rs @@ -263,7 +263,7 @@ mod test { } - mod ignore_patternses { + mod ignore_patterns { use super::*; use std::iter::FromIterator; use glob; diff --git a/src/options/mod.rs b/src/options/mod.rs index 97366d7..65f67d5 100644 --- a/src/options/mod.rs +++ b/src/options/mod.rs @@ -194,19 +194,19 @@ pub mod test { use std::ffi::OsString; let bits = inputs.into_iter().map(|&o| os(o)).collect::>(); - let mut rezzies = Vec::new(); + let mut result = Vec::new(); if strictnesses == Last || strictnesses == Both { let results = Args(args).parse(bits.iter(), Strictness::UseLastArguments); - rezzies.push(get(&results.unwrap().flags)); + result.push(get(&results.unwrap().flags)); } if strictnesses == Complain || strictnesses == Both { let results = Args(args).parse(bits.iter(), Strictness::ComplainAboutRedundantArguments); - rezzies.push(get(&results.unwrap().flags)); + result.push(get(&results.unwrap().flags)); } - rezzies + result } /// Creates an `OSStr` (used in tests)