Skip to content

Commit df5d901

Browse files
committed
perf(derive): Reduce amount of generated code
1 parent e8a3568 commit df5d901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clap_derive/src/derives/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ fn gen_parsers(
703703
Ty::Other => {
704704
quote_spanned! { ty.span()=>
705705
#arg_matches.#get_one(#id)
706-
.ok_or_else(|| clap::Error::raw(clap::error::ErrorKind::MissingRequiredArgument, format!("The following required argument was not provided: {}", #id)))?
706+
.ok_or_else(|| clap::Error::raw(clap::error::ErrorKind::MissingRequiredArgument, concat!("The following required argument was not provided: ", #id)))?
707707
}
708708
}
709709
};

0 commit comments

Comments
 (0)