diff --git a/appveyor.yml b/appveyor.yml index d03a811f..0db888db 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 diff --git a/src/errors.rs b/src/errors.rs index 38e55b6b..f26d6a4a 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -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; diff --git a/src/suggestions.rs b/src/suggestions.rs index 6ac37d80..3b9254c3 100644 --- a/src/suggestions.rs +++ b/src/suggestions.rs @@ -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()); - } }