File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
crates/stackable-versioned-macros/src/codegen/item Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ impl VersionedVariant {
29
29
30
30
let variant_ident = VariantIdent :: from ( variant. ident ) ;
31
31
32
- // FIXME (@Techassi): As we currently don 't support enum variants with
33
- // data , we just return the Never type as the code generation code for
34
- // enum variants won't use this type information .
32
+ // FIXME (@Techassi): The chain of changes currently doesn 't track versioning of variant
33
+ // date and as such , we just use the never type here. During codegen, we just re-emit the
34
+ // variant data as is .
35
35
let ty = Type :: Never ( TypeNever {
36
36
bang_token : Not ( [ Span :: call_site ( ) ] ) ,
37
37
} ) ;
@@ -65,7 +65,8 @@ impl VersionedVariant {
65
65
let fields = & self . fields ;
66
66
67
67
match & self . changes {
68
- // NOTE (@Techassi): `unwrap_or_else` used instead of `expect`. See: https://rust-lang.github.io/rust-clippy/master/index.html#/expect_fun_call
68
+ // NOTE (@Techassi): `unwrap_or_else` used instead of `expect`.
69
+ // See: https://rust-lang.github.io/rust-clippy/master/index.html#/expect_fun_call
69
70
Some ( changes) => match changes. get ( & version. inner ) . unwrap_or_else ( || {
70
71
panic ! (
71
72
"internal error: chain must contain container version {}" ,
You can’t perform that action at this time.
0 commit comments