From 6afad53466e67626e1b98c7d68dbd760a98d1b14 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 28 Nov 2019 13:49:14 +0100 Subject: [PATCH] api-macro: some more test code Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/tests/types.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") }