Skip to content

Commit

Permalink
perf(derive): reduce amount of generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
klensy committed Jun 2, 2023
1 parent e8a3568 commit 98191fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_derive/src/derives/args.rs
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 98191fd

Please sign in to comment.