]> git.proxmox.com Git - proxmox.git/commitdiff
cleanup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Sat, 28 Sep 2019 08:36:43 +0000 (10:36 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Sat, 28 Sep 2019 08:36:43 +0000 (10:36 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-api-macro/src/api_macro/function.rs

index 0e6a328e8e03536416e0fc41b737f4bc9cade15c..f1cdcc3d17bde9f95c0f81f0ccbf6cd1f31bf7b2 100644 (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 {