forked from proxmox-mirrors/proxmox
api-macro: mark parameter defaults as #[allow(dead_code)]
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
922c605d69
commit
703c2dee04
@ -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;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user