From 5690e5e6a2997aab6d0f3c1315ec4240fed13fac Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 28 Nov 2019 13:43:25 +0100 Subject: [PATCH] api-macro: cleanup Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/api/enums.rs | 4 ++-- proxmox-api-macro/tests/types.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/proxmox-api-macro/src/api/enums.rs b/proxmox-api-macro/src/api/enums.rs index 24bd3b9e..9401a442 100644 --- a/proxmox-api-macro/src/api/enums.rs +++ b/proxmox-api-macro/src/api/enums.rs @@ -13,7 +13,7 @@ use crate::util::{JSONObject, JSONValue, SimpleIdent}; /// `parse_macro_input!` expects a TokenStream_1 struct AttrArgs { - paren_token: syn::token::Paren, + _paren_token: syn::token::Paren, args: Punctuated, } @@ -21,7 +21,7 @@ impl Parse for AttrArgs { fn parse(input: ParseStream) -> syn::Result { let content; Ok(Self { - paren_token: syn::parenthesized!(content in input), + _paren_token: syn::parenthesized!(content in input), args: Punctuated::parse_terminated(&content)?, }) } diff --git a/proxmox-api-macro/tests/types.rs b/proxmox-api-macro/tests/types.rs index c1dde62b..cc163641 100644 --- a/proxmox-api-macro/tests/types.rs +++ b/proxmox-api-macro/tests/types.rs @@ -5,7 +5,7 @@ use proxmox::api::schema; use proxmox_api_macro::api; use failure::Error; -use serde::{Deserialize, Serialize}; +use serde::Deserialize; use serde_json::Value; #[api(