[pve-devel] [PATCH installer 1/2] auto: answer: drop unneeded #[serde(default)] attributes
Christoph Heiss
c.heiss at proxmox.com
Tue Apr 29 15:20:23 CEST 2025
For `Option<>`s, serde automatically defaults to `None` for
deserialization in case the key is missing in the source.
No functional changes.
Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
proxmox-auto-installer/src/answer.rs | 2 --
1 file changed, 2 deletions(-)
diff --git a/proxmox-auto-installer/src/answer.rs b/proxmox-auto-installer/src/answer.rs
index 34065e8..cbf268d 100644
--- a/proxmox-auto-installer/src/answer.rs
+++ b/proxmox-auto-installer/src/answer.rs
@@ -23,9 +23,7 @@ pub struct Answer {
pub network: Network,
#[serde(rename = "disk-setup")]
pub disks: Disks,
- #[serde(default)]
pub post_installation_webhook: Option<PostNotificationHookInfo>,
- #[serde(default)]
pub first_boot: Option<FirstBootHookInfo>,
}
--
2.49.0
More information about the pve-devel
mailing list