From 2fc2df9a78dad6034f0cd00778a485722a6cf66b Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 28 Nov 2019 09:29:45 +0100 Subject: [PATCH] api-macro: tests: remove #![allow(dead_code)] Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/tests/api1.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/proxmox-api-macro/tests/api1.rs b/proxmox-api-macro/tests/api1.rs index f7943b23..cb8b4754 100644 --- a/proxmox-api-macro/tests/api1.rs +++ b/proxmox-api-macro/tests/api1.rs @@ -1,5 +1,3 @@ -#![allow(dead_code)] - use proxmox_api_macro::api; use failure::Error; @@ -40,7 +38,7 @@ use serde_json::Value; /// Create or verify authentication ticket. /// /// Returns: A ticket. -fn create_ticket(_param: Value) -> Result { +pub fn create_ticket(_param: Value) -> Result { panic!("implement me"); } @@ -79,7 +77,7 @@ fn create_ticket(_param: Value) -> Result { /// Create or verify authentication ticket. /// /// Returns: A ticket. -fn create_ticket_direct(username: String, password: String) -> Result<&'static str, Error> { +pub fn create_ticket_direct(username: String, password: String) -> Result<&'static str, Error> { let _ = username; let _ = password; // This sill not pass the schema's output validation, but the code still compiles as this can