Skip to content

Commit

Permalink
Merge pull request #4947 from klensy/formatless-error
Browse files Browse the repository at this point in the history
perf(derive): reduce amount of generated code
  • Loading branch information
epage committed Jun 2, 2023
2 parents e8a3568 + df5d901 commit 7ead9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_derive/src/derives/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))?
}
}
};
Expand Down

0 comments on commit 7ead9ab

Please sign in to comment.