forked from proxmox-mirrors/proxmox
api-macro: cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
7d6fac0fa5
commit
5690e5e6a2
@ -13,7 +13,7 @@ use crate::util::{JSONObject, JSONValue, SimpleIdent};
|
|||||||
|
|
||||||
/// `parse_macro_input!` expects a TokenStream_1
|
/// `parse_macro_input!` expects a TokenStream_1
|
||||||
struct AttrArgs {
|
struct AttrArgs {
|
||||||
paren_token: syn::token::Paren,
|
_paren_token: syn::token::Paren,
|
||||||
args: Punctuated<syn::NestedMeta, Token![,]>,
|
args: Punctuated<syn::NestedMeta, Token![,]>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ impl Parse for AttrArgs {
|
|||||||
fn parse(input: ParseStream) -> syn::Result<Self> {
|
fn parse(input: ParseStream) -> syn::Result<Self> {
|
||||||
let content;
|
let content;
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
paren_token: syn::parenthesized!(content in input),
|
_paren_token: syn::parenthesized!(content in input),
|
||||||
args: Punctuated::parse_terminated(&content)?,
|
args: Punctuated::parse_terminated(&content)?,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ use proxmox::api::schema;
|
|||||||
use proxmox_api_macro::api;
|
use proxmox_api_macro::api;
|
||||||
|
|
||||||
use failure::Error;
|
use failure::Error;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::Deserialize;
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
|
|
||||||
#[api(
|
#[api(
|
||||||
|
Loading…
Reference in New Issue
Block a user