api-macro: cleanup: warnings

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-03-06 13:50:39 +01:00
parent 8e1ace59b1
commit c5c82abc7d
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ fn handle_newtype_struct(
let mut schema: Schema = attribs.try_into()?; let mut schema: Schema = attribs.try_into()?;
match schema.item { 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 // The schema has no `type` and we failed to guess it. Infer it from the contained
// field! // field!

View File

@ -2,7 +2,7 @@ use std::borrow::Borrow;
use std::collections::HashMap; use std::collections::HashMap;
use std::convert::TryFrom; use std::convert::TryFrom;
use proc_macro2::{Ident, Span, TokenStream}; use proc_macro2::{Ident, Span};
use syn::parse::{Parse, ParseStream}; use syn::parse::{Parse, ParseStream};
use syn::punctuated::Punctuated; use syn::punctuated::Punctuated;
use syn::spanned::Spanned; use syn::spanned::Spanned;