api-macro: cleanup: warnings
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
@ -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!
|
||||
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user