Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl VersionedVariant {
}),
Direction::Downgrade => Some(quote! {
#next_version_ident::#enum_ident::#next_variant_ident #from_fields
=> #old_version_ident::#enum_ident::#old_variant_ident #from_fields,
=> #old_version_ident::#enum_ident::#old_variant_ident #for_fields,
}),
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ use stackable_versioned::versioned;
// ---
pub mod versioned {
enum Foo {
A { aa: usize, aaa: u64 },
B { bb: bool },
#[versioned(changed(since = "v1alpha2", from_name = "PrevA"))]
A {
aa: usize,
aaa: u64,
},
B {
bb: bool,
},
}

enum Bar {
#[versioned(changed(since = "v1alpha2", from_name = "PrevA"))]
A(A),
B {},
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions crates/stackable-versioned/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Fixed

- Fix inconsistent use of `.into()` functions in enum `From` impls with variant data ([#1109]).

[#1109]: https://github.com/stackabletech/operator-rs/pull/1109

## [0.8.2] - 2025-09-09

### Added
Expand Down