From: Wolfgang Bumiller Date: Thu, 28 Nov 2019 12:49:14 +0000 (+0100) Subject: api-macro: some more test code X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6afad53466e67626e1b98c7d68dbd760a98d1b14;p=proxmox.git api-macro: some more test code Signed-off-by: Wolfgang Bumiller --- diff --git a/proxmox-api-macro/tests/types.rs b/proxmox-api-macro/tests/types.rs index 82a4ca50..e6ceacf8 100644 --- a/proxmox-api-macro/tests/types.rs +++ b/proxmox-api-macro/tests/types.rs @@ -37,6 +37,7 @@ pub enum Selection { input: { properties: { arg: { type: OkString }, + selection: { type: Selection }, } }, returns: { type: Boolean }, @@ -44,7 +45,8 @@ pub enum Selection { /// Check a string. /// /// Returns: Whether the string was "ok". -pub fn string_check(arg: Value) -> Result { +pub fn string_check(arg: Value, selection: Selection) -> Result { let _ = arg; + let _ = selection; panic!("body") }