From c5c82abc7dc5e945ad401366043dfc47f78df251 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 6 Mar 2020 13:50:39 +0100 Subject: [PATCH] api-macro: cleanup: warnings Signed-off-by: Wolfgang Bumiller --- proxmox-api-macro/src/api/structs.rs | 2 +- proxmox-api-macro/src/util.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;