Skip to content

Commit

Permalink
Seems like the zip_next is nowadays jsut zip again
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaku committed May 5, 2024
1 parent c907d43 commit 19fb23c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions utoipa-gen/src/component/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self>
fn parse(input: ParseStream, _ident: Ident) -> syn::Result<Self>
where
Self: Sized,
{
parse_integer(input).map(|max_properties| Self(max_properties, ident))
parse_integer(input).map(|max_properties| Self(max_properties, ()))
}
}

Expand All @@ -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<Self>
fn parse(input: ParseStream, _ident: Ident) -> syn::Result<Self>
where
Self: Sized,
{
parse_integer(input).map(|min_properties| Self(min_properties, ident))
parse_integer(input).map(|min_properties| Self(min_properties, ()))
}
}

Expand Down
2 changes: 1 addition & 1 deletion utoipa-swagger-ui/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 19fb23c

Please sign in to comment.