mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-03 20:55:57 +00:00
macro: disable derive_default for now
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
5d9fe0d24d
commit
bb62206e27
@ -494,6 +494,13 @@ fn handle_struct_named(
|
|||||||
.transpose()?
|
.transpose()?
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
|
|
||||||
|
if derive_default {
|
||||||
|
// We currently fill the actual `default` values from the schema into Option<Foo>, but
|
||||||
|
// really Option<Foo> should default to None even when there's a Default as our accessors
|
||||||
|
// will fill in the default at use-time...
|
||||||
|
panic!("derive_default is not finished");
|
||||||
|
}
|
||||||
|
|
||||||
let field_count = item.named.len();
|
let field_count = item.named.len();
|
||||||
|
|
||||||
let type_s = type_ident.to_string();
|
let type_s = type_ident.to_string();
|
||||||
|
Loading…
Reference in New Issue
Block a user