mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
fix(derive): Align value parser's type with occurrences_of
This commit is contained in:
parent
b417e62ccd
commit
bbab148289
1 changed files with 1 additions and 1 deletions
|
@ -971,7 +971,7 @@ impl Parser {
|
||||||
),
|
),
|
||||||
ParserKind::FromOccurrences => Method::new(
|
ParserKind::FromOccurrences => Method::new(
|
||||||
func,
|
func,
|
||||||
quote_spanned! { self.kind.span()=> clap::value_parser!(usize)},
|
quote_spanned! { self.kind.span()=> clap::value_parser!(u64)},
|
||||||
),
|
),
|
||||||
ParserKind::FromFlag => Method::new(
|
ParserKind::FromFlag => Method::new(
|
||||||
func,
|
func,
|
||||||
|
|
Loading…
Add table
Reference in a new issue