adjust some spelling

This commit is contained in:
Martin Lindhe 2017-10-31 06:24:31 +01:00
parent 0eb7966294
commit 7b1ee01eb5
2 changed files with 5 additions and 5 deletions

View File

@ -263,7 +263,7 @@ mod test {
}
mod ignore_patternses {
mod ignore_patterns {
use super::*;
use std::iter::FromIterator;
use glob;

View File

@ -194,19 +194,19 @@ pub mod test {
use std::ffi::OsString;
let bits = inputs.into_iter().map(|&o| os(o)).collect::<Vec<OsString>>();
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)