mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
Merge pull request #4947 from klensy/formatless-error
perf(derive): reduce amount of generated code
This commit is contained in:
commit
7ead9ab356
1 changed files with 1 additions and 1 deletions
|
@ -703,7 +703,7 @@ fn gen_parsers(
|
|||
Ty::Other => {
|
||||
quote_spanned! { ty.span()=>
|
||||
#arg_matches.#get_one(#id)
|
||||
.ok_or_else(|| clap::Error::raw(clap::error::ErrorKind::MissingRequiredArgument, format!("The following required argument was not provided: {}", #id)))?
|
||||
.ok_or_else(|| clap::Error::raw(clap::error::ErrorKind::MissingRequiredArgument, concat!("The following required argument was not provided: ", #id)))?
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue