api-macro: cleanup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-11-28 13:43:25 +01:00
parent 7d6fac0fa5
commit 5690e5e6a2
2 changed files with 3 additions and 3 deletions

View File

@ -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<syn::NestedMeta, Token![,]>,
}
@ -21,7 +21,7 @@ impl Parse for AttrArgs {
fn parse(input: ParseStream) -> syn::Result<Self> {
let content;
Ok(Self {
paren_token: syn::parenthesized!(content in input),
_paren_token: syn::parenthesized!(content in input),
args: Punctuated::parse_terminated(&content)?,
})
}

View File

@ -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(