mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
chore: changes build command features for Windows builds in testing
This commit is contained in:
parent
2b6511fe65
commit
b9ff14bfff
3 changed files with 4 additions and 5 deletions
|
@ -9,5 +9,4 @@ build: false
|
|||
|
||||
test_script:
|
||||
- cargo build --features yaml
|
||||
- cargo test --features yaml
|
||||
- cargo build --no-default-features
|
||||
- cargo test --no-default-features --features yaml
|
||||
|
|
|
@ -497,10 +497,11 @@ pub enum ClapErrorType {
|
|||
UnexpectedMultipleUsage,
|
||||
/// Error occurs when argument contains invalid unicode characters
|
||||
///
|
||||
/// **Note:** Non-Windows OS only
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```no_run
|
||||
/// ```ignore
|
||||
/// # use clap::{App, Arg};
|
||||
/// # use std::os::unix::ffi::OsStringExt;
|
||||
/// # use std::ffi::OsString;
|
||||
|
|
|
@ -72,7 +72,7 @@ pub enum DidYouMeanMessageStyle {
|
|||
EnumValue,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[cfg(all(test, features = "suggestions"))]
|
||||
mod test {
|
||||
use super::*;
|
||||
|
||||
|
@ -81,6 +81,5 @@ mod test {
|
|||
let p_vals = ["test", "possible", "values"];
|
||||
assert_eq!(did_you_mean("tst", p_vals.iter()), Some("test"));
|
||||
assert!(did_you_mean("hahaahahah", p_vals.iter()).is_none());
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue