refactor: remove enum-map lookup wrappers
This commit is contained in:
@@ -21,7 +21,7 @@ init proc(
|
||||
|
||||
#! initializes absent value slots without making their keys present.
|
||||
#! use fully initialized storage when a sparse map must be materialized at compile time.
|
||||
init_filled proc(
|
||||
init_default proc(
|
||||
$E, $V type,
|
||||
storage_default V,
|
||||
values meta.EnumFieldStruct(E, ?V, some!(null)),
|
||||
|
||||
@@ -26,7 +26,7 @@ handles_sparse_enum_get test {
|
||||
}
|
||||
|
||||
@hide:file
|
||||
sparse_optional_values :: $init_filled(TestEnum, ?i16, null, {
|
||||
sparse_optional_values :: $init_default(TestEnum, ?i16, null, {
|
||||
ident = some!(null),
|
||||
int = some!(some!(i16(42))),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user