mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-15 10:08:33 +00:00
api-macro: remove some unnecessary parentheses in output
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
e375f2eb95
commit
b671b2fce2
@ -127,7 +127,7 @@ pub fn handle_method(mut attribs: JSONObject, mut func: syn::ItemFn) -> Result<T
|
|||||||
let mut inner = TokenStream::new();
|
let mut inner = TokenStream::new();
|
||||||
schema.to_schema(&mut inner)?;
|
schema.to_schema(&mut inner)?;
|
||||||
returns_schema_definition = quote_spanned! { func.sig.span() =>
|
returns_schema_definition = quote_spanned! { func.sig.span() =>
|
||||||
pub const #return_schema_name: &'static ::proxmox::api::schema::Schema = (#inner);
|
pub const #return_schema_name: &'static ::proxmox::api::schema::Schema = #inner;
|
||||||
};
|
};
|
||||||
returns_schema_setter = quote! { .returns(#return_schema_name) };
|
returns_schema_setter = quote! { .returns(#return_schema_name) };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user