From 6f0073bbb58b1d086301f3905aa9302b7f9ada8f Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 11 Nov 2020 17:20:33 +0100 Subject: [PATCH] api: apt update info: do not serialize extra info if none Signed-off-by: Thomas Lamprecht --- src/api2/types/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api2/types/mod.rs b/src/api2/types/mod.rs index f240fb64..59323327 100644 --- a/src/api2/types/mod.rs +++ b/src/api2/types/mod.rs @@ -1177,7 +1177,8 @@ pub struct APTUpdateInfo { pub section: String, /// URL under which the package's changelog can be retrieved pub change_log_url: String, - /// Additional package information + /// Custom extra field for additional package information + #[serde(skip_serializing_if="Option::is_none")] pub extra_info: Option, }