diff --git a/proxmox-api-macro/src/api/structs.rs b/proxmox-api-macro/src/api/structs.rs index d9510087..014eed29 100644 --- a/proxmox-api-macro/src/api/structs.rs +++ b/proxmox-api-macro/src/api/structs.rs @@ -83,7 +83,7 @@ fn handle_newtype_struct( let mut schema: Schema = attribs.try_into()?; match schema.item { - SchemaItem::Inferred(span) => { + SchemaItem::Inferred(_span) => { // The schema has no `type` and we failed to guess it. Infer it from the contained // field! diff --git a/proxmox-api-macro/src/util.rs b/proxmox-api-macro/src/util.rs index 251ff83b..0cf08064 100644 --- a/proxmox-api-macro/src/util.rs +++ b/proxmox-api-macro/src/util.rs @@ -2,7 +2,7 @@ use std::borrow::Borrow; use std::collections::HashMap; use std::convert::TryFrom; -use proc_macro2::{Ident, Span, TokenStream}; +use proc_macro2::{Ident, Span}; use syn::parse::{Parse, ParseStream}; use syn::punctuated::Punctuated; use syn::spanned::Spanned;