Merge pull request #4859 from epage/ci

docs: Clean up so CI passes
This commit is contained in:
Ed Page 2023-04-25 10:16:44 -05:00 committed by GitHub
commit 708c00bd5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 9 deletions

View file

@ -207,8 +207,8 @@ impl Parse for ClapAttr {
}
"default_value_t" => Ok(DefaultValueT(name, None)),
"default_value_os_t" => Ok(DefaultValueOsT(name, None)),
"about" => (Ok(About(name))),
"author" => (Ok(Author(name))),
"about" => Ok(About(name)),
"author" => Ok(Author(name)),
"version" => Ok(Version(name)),
"skip" => Ok(Skip(name, None)),

View file

@ -5324,7 +5324,7 @@ impl Default for ArgProvider {
}
}
/// Write the values such as <name1> <name2>
/// Write the values such as `<name1> <name2>`
pub(crate) fn display_arg_val<F, T, E>(arg: &Arg, mut write: F) -> Result<(), E>
where
F: FnMut(&str, bool) -> Result<T, E>,

View file

@ -2104,10 +2104,8 @@ pub mod via_prelude {
/// assert_eq!(format!("{:?}", parser), "ValueParser::os_string");
/// let parser = clap::value_parser!(std::path::PathBuf);
/// assert_eq!(format!("{:?}", parser), "ValueParser::path_buf");
/// let parser = clap::value_parser!(u16).range(3000..);
/// assert_eq!(format!("{:?}", parser), "RangedI64ValueParser { bounds: (Included(3000), Included(65535)), target: PhantomData }");
/// let parser = clap::value_parser!(u64).range(3000..);
/// assert_eq!(format!("{:?}", parser), "RangedU64ValueParser { bounds: (Included(3000), Unbounded), target: PhantomData }");
/// let _parser = clap::value_parser!(u16).range(3000..);
/// let _parser = clap::value_parser!(u64).range(3000..);
///
/// // FromStr types
/// let parser = clap::value_parser!(usize);
@ -2133,8 +2131,7 @@ pub mod via_prelude {
/// # }
/// # }
/// }
/// let parser = clap::value_parser!(ColorChoice);
/// assert_eq!(format!("{:?}", parser), "EnumValueParser(PhantomData)");
/// let _parser = clap::value_parser!(ColorChoice);
/// ```
#[macro_export]
macro_rules! value_parser {