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 df5d901
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
@@ -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)))?
}
}
};

0 comments on commit df5d901

Please sign in to comment.