Skip to content

Commit

Permalink
Remove duplicated check
Browse files Browse the repository at this point in the history
  • Loading branch information
escritorio-gustavo authored Jan 30, 2024
1 parent 836e145 commit 96a664a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions macros/src/types/enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ fn format_variant(
..
} = FieldAttr::from_attrs(&unnamed.unnamed[0].attrs)?;

if type_as.is_some() && type_override.is_some() {
syn_err!("`type` is not compatible with `as`")
}

let ty = match (type_override, type_as) {
(Some(_), Some(_)) => syn_err!("`type` is not compatible with `as`"),
(Some(type_override), None) => quote! { #type_override },
Expand Down

0 comments on commit 96a664a

Please sign in to comment.