diff --git a/proxmox-api-macro/src/api/method.rs b/proxmox-api-macro/src/api/method.rs index d170a9d5..bc2c2e4f 100644 --- a/proxmox-api-macro/src/api/method.rs +++ b/proxmox-api-macro/src/api/method.rs @@ -758,6 +758,7 @@ fn extract_normal_parameter( // strip possible Option<> from this type: let ty = util::is_option_type(¶m.ty).unwrap_or(¶m.ty); default_consts.extend(quote_spanned! { span => + #[allow(dead_code)] pub const #name: #ty = #def; });