From df5d90101a86d5ff848c4ae713a535619ee390a7 Mon Sep 17 00:00:00 2001 From: klensy Date: Fri, 2 Jun 2023 13:32:23 +0300 Subject: [PATCH] perf(derive): Reduce amount of generated code --- clap_derive/src/derives/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clap_derive/src/derives/args.rs b/clap_derive/src/derives/args.rs index 8a9272af..83598f56 100644 --- a/clap_derive/src/derives/args.rs +++ b/clap_derive/src/derives/args.rs @@ -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)))? } } };