forked from proxmox-mirrors/proxmox
api-macro: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
30901c60f5
commit
7b1aad429f
@ -283,7 +283,7 @@ fn check_input_type(input: &syn::FnArg) -> Result<(&syn::PatType, &syn::PatIdent
|
|||||||
|
|
||||||
fn handle_function_signature(
|
fn handle_function_signature(
|
||||||
input_schema: &mut Schema,
|
input_schema: &mut Schema,
|
||||||
return_type: &mut Option<ReturnType>,
|
_return_type: &mut Option<ReturnType>,
|
||||||
func: &mut syn::ItemFn,
|
func: &mut syn::ItemFn,
|
||||||
wrapper_ts: &mut TokenStream,
|
wrapper_ts: &mut TokenStream,
|
||||||
default_consts: &mut TokenStream,
|
default_consts: &mut TokenStream,
|
||||||
@ -416,8 +416,8 @@ fn handle_function_signature(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
create_wrapper_function(
|
create_wrapper_function(
|
||||||
input_schema,
|
//input_schema,
|
||||||
return_type,
|
//return_type,
|
||||||
param_list,
|
param_list,
|
||||||
func,
|
func,
|
||||||
wrapper_ts,
|
wrapper_ts,
|
||||||
@ -474,8 +474,8 @@ fn is_value_type(ty: &syn::Type) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn create_wrapper_function(
|
fn create_wrapper_function(
|
||||||
_input_schema: &Schema,
|
//_input_schema: &Schema,
|
||||||
_returns_schema: &Option<ReturnType>,
|
//_returns_schema: &Option<ReturnType>,
|
||||||
param_list: Vec<(FieldName, ParameterType)>,
|
param_list: Vec<(FieldName, ParameterType)>,
|
||||||
func: &syn::ItemFn,
|
func: &syn::ItemFn,
|
||||||
wrapper_ts: &mut TokenStream,
|
wrapper_ts: &mut TokenStream,
|
||||||
|
Loading…
Reference in New Issue
Block a user