mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-02-23 04:52:28 +00:00
fix weird rust issue where PartialEq is not being detected since 1.44.0
I did not manage to get a repro of this since all old versions of rust fail to compile, eventhough the CI clearly confirms that it used to compile with 1.43.0
This commit is contained in:
parent
31835fe57f
commit
6470bd59ef
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ fn parse_attributes(input: &[Attribute]) -> Result<Attrs> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn expand_variant(variant: &Variant) -> Result<TokenStream> {
|
fn expand_variant(variant: &Variant) -> Result<TokenStream> {
|
||||||
if variant.fields != Fields::Unit {
|
if !matches!(variant.fields, Fields::Unit) {
|
||||||
return Err(Error::new(
|
return Err(Error::new(
|
||||||
variant.span(),
|
variant.span(),
|
||||||
"#[derive(OpenapiType)] does not support enum variants with fields"
|
"#[derive(OpenapiType)] does not support enum variants with fields"
|
||||||
|
|
Loading…
Add table
Reference in a new issue