mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
perf(derive): Reduce amount of generated code
This commit is contained in:
parent
e8a3568219
commit
df5d90101a
1 changed files with 1 additions and 1 deletions
|
@ -703,7 +703,7 @@ fn gen_parsers(
|
||||||
Ty::Other => {
|
Ty::Other => {
|
||||||
quote_spanned! { ty.span()=>
|
quote_spanned! { ty.span()=>
|
||||||
#arg_matches.#get_one(#id)
|
#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