Merge pull request #311 from martinlindhe/master

adjust some spelling
This commit is contained in:
Benjamin Sago 2018-05-28 10:47:38 +02:00 committed by GitHub
commit 5438f949c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -272,7 +272,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)