index_map
and character_map
are broken (one static map is initialized for all types, and thus doesn't work for different types)
#229
Labels
area/codec
Related to a new or existing ASN.1 codec.
good first issue
Good for newcomers
help wanted
Extra attention is needed
kind/bug
Something isn't working
As discussed in ferrilab/bitvec#229 (comment), the current
index_map
andcharacter_map
functions are broken:rasn/src/types/strings/constrained.rs
Lines 99 to 112 in fb6e682
The static
MAP: OnceBox<BTreeMap<u32, u32>>
exists once for all implementing types, not separately for each implementing type.The text was updated successfully, but these errors were encountered: