diff --git a/utoipa-gen/src/component/features.rs b/utoipa-gen/src/component/features.rs index c8889da3..509f51aa 100644 --- a/utoipa-gen/src/component/features.rs +++ b/utoipa-gen/src/component/features.rs @@ -1247,14 +1247,14 @@ name!(MinItems = "min_items"); #[cfg_attr(feature = "debug", derive(Debug))] #[derive(Clone)] -pub struct MaxProperties(usize, Ident); +pub struct MaxProperties(usize, ()); impl Parse for MaxProperties { - fn parse(input: ParseStream, ident: Ident) -> syn::Result + fn parse(input: ParseStream, _ident: Ident) -> syn::Result where Self: Sized, { - parse_integer(input).map(|max_properties| Self(max_properties, ident)) + parse_integer(input).map(|max_properties| Self(max_properties, ())) } } @@ -1274,14 +1274,14 @@ name!(MaxProperties = "max_properties"); #[cfg_attr(feature = "debug", derive(Debug))] #[derive(Clone)] -pub struct MinProperties(usize, Ident); +pub struct MinProperties(usize, ()); impl Parse for MinProperties { - fn parse(input: ParseStream, ident: Ident) -> syn::Result + fn parse(input: ParseStream, _ident: Ident) -> syn::Result where Self: Sized, { - parse_integer(input).map(|min_properties| Self(min_properties, ident)) + parse_integer(input).map(|min_properties| Self(min_properties, ())) } } diff --git a/utoipa-swagger-ui/build.rs b/utoipa-swagger-ui/build.rs index ae5ed3a8..94aa7c45 100644 --- a/utoipa-swagger-ui/build.rs +++ b/utoipa-swagger-ui/build.rs @@ -7,7 +7,7 @@ use std::{ }; use regex::Regex; -use zip_next::{result::ZipError, ZipArchive}; +use zip::{result::ZipError, ZipArchive}; /// the following env variables control the build process: /// 1. SWAGGER_UI_DOWNLOAD_URL: