Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-09-28 10:36:43 +02:00
parent 617e25abba
commit e0b50d07bf

View File

@ -195,10 +195,10 @@ pub fn handle_function(
body.push(quote! {
// This is our helper struct which Derefs to a wrapper of our original function, which
// applies the added validators.
#vis struct #struct_name();
#vis struct #struct_name;
#[allow(non_upper_case_globals)]
const #name: &#struct_name = &#struct_name();
const #name: &#struct_name = &#struct_name;
// Namespace some of our code into the helper type:
impl #struct_name {