Skip to content

Commit 488b409

Browse files
committed
fix: Skip From impls for enum if options are set
1 parent cd125d2 commit 488b409

File tree

1 file changed

+4
-0
lines changed
  • crates/stackable-versioned-macros/src/codegen/container

1 file changed

+4
-0
lines changed

crates/stackable-versioned-macros/src/codegen/container/enum.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ impl Enum {
119119
next_version: Option<&VersionDefinition>,
120120
is_nested: bool,
121121
) -> Option<TokenStream> {
122+
if version.skip_from || self.common.options.skip_from {
123+
return None;
124+
}
125+
122126
match next_version {
123127
Some(next_version) => {
124128
let enum_ident = &self.common.idents.original;

0 commit comments

Comments
 (0)