From adb425aeb2cb776923b8821b6873c9b5d3680b15 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 17 Jun 2019 15:06:18 +0200 Subject: [PATCH] api: set missing description of Option types Signed-off-by: Wolfgang Bumiller --- proxmox-api/src/api_type.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proxmox-api/src/api_type.rs b/proxmox-api/src/api_type.rs index f06c31d5..00eb003e 100644 --- a/proxmox-api/src/api_type.rs +++ b/proxmox-api/src/api_type.rs @@ -197,6 +197,7 @@ impl ApiType for Option { DATA.once.call_once(|| { let info = T::type_info(); DATA.name.set(Some(format!("optional: {}", info.name))); + DATA.description.set(Some(format!("optional: {}", info.description))); DATA.info.set(Some(TypeInfo { name: unsafe { (*DATA.name.as_ptr()).as_ref().unwrap().as_str() }, description: unsafe { (*DATA.description.as_ptr()).as_ref().unwrap().as_str() },