From cef5006e4f4d4bc9adf70d73746e0aec61eca637 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 24 Apr 2023 22:15:26 -0500 Subject: [PATCH] docs: Make more resilient across rust versions --- src/builder/value_parser.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/builder/value_parser.rs b/src/builder/value_parser.rs index 92cbbadf..cfe1e4db 100644 --- a/src/builder/value_parser.rs +++ b/src/builder/value_parser.rs @@ -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 {