mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-13 08:44:53 +00:00
api-macro: cleanup: warnings
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
8e1ace59b1
commit
c5c82abc7d
@ -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!
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user