From 7b1aad429fac9f12f23bc3a071da3afc43e8c135 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 29 Jun 2022 10:10:07 +0200 Subject: [PATCH] api-macro: clippy fixes Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/api/method.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/proxmox-api-macro/src/api/method.rs b/proxmox-api-macro/src/api/method.rs index 1db61242..eae36942 100644 --- a/proxmox-api-macro/src/api/method.rs +++ b/proxmox-api-macro/src/api/method.rs @@ -283,7 +283,7 @@ fn check_input_type(input: &syn::FnArg) -> Result<(&syn::PatType, &syn::PatIdent fn handle_function_signature( input_schema: &mut Schema, - return_type: &mut Option, + _return_type: &mut Option, func: &mut syn::ItemFn, wrapper_ts: &mut TokenStream, default_consts: &mut TokenStream, @@ -416,8 +416,8 @@ fn handle_function_signature( */ create_wrapper_function( - input_schema, - return_type, + //input_schema, + //return_type, param_list, func, wrapper_ts, @@ -474,8 +474,8 @@ fn is_value_type(ty: &syn::Type) -> bool { } fn create_wrapper_function( - _input_schema: &Schema, - _returns_schema: &Option, + //_input_schema: &Schema, + //_returns_schema: &Option, param_list: Vec<(FieldName, ParameterType)>, func: &syn::ItemFn, wrapper_ts: &mut TokenStream,