We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3a8dff commit 88f1df8Copy full SHA for 88f1df8
crates/stackable-versioned-macros/src/codegen/container/struct/conversion.rs
@@ -310,7 +310,14 @@ impl Struct {
310
c.value_is(&version.inner, |s| {
311
// For now, only added fields need to be tracked. In the future, removals and
312
// type changes also need to be tracked
313
- matches!(s, ItemStatus::Addition { .. })
+ 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
+ }
321
})
322
323
0 commit comments