Skip to content

Commit 88f1df8

Browse files
committed
chore(stackable-versioned): Replace matches! with match
1 parent c3a8dff commit 88f1df8

File tree

1 file changed

+8
-1
lines changed
  • crates/stackable-versioned-macros/src/codegen/container/struct

1 file changed

+8
-1
lines changed

crates/stackable-versioned-macros/src/codegen/container/struct/conversion.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,14 @@ impl Struct {
310310
c.value_is(&version.inner, |s| {
311311
// For now, only added fields need to be tracked. In the future, removals and
312312
// type changes also need to be tracked
313-
matches!(s, ItemStatus::Addition { .. })
313+
match s {
314+
ItemStatus::Addition { .. } => true,
315+
// TODO (@Techassi): Support tracking for changed fields
316+
ItemStatus::Change { .. }
317+
| ItemStatus::Deprecation { .. }
318+
| ItemStatus::NoChange { .. }
319+
| ItemStatus::NotPresent => false,
320+
}
314321
})
315322
})
316323
})

0 commit comments

Comments
 (0)