Closed EncodedVenom closed 2 months ago
Zap fails to get the max size of an enum type and defaults to 255 as its max value.
This does not cause an error, but a warning is generated saying "potentially oversize" due to this behavior in certain situations.
playground link
Zap should infer the proper max size
https://github.com/red-blox/zap/blob/0.6.x/zap/src/config.rs#L258
Linked PR got merged
Describe the bug
Zap fails to get the max size of an enum type and defaults to 255 as its max value.
This does not cause an error, but a warning is generated saying "potentially oversize" due to this behavior in certain situations.
Reproduction
playground link
Expected behavior
Zap should infer the proper max size
Additional context
https://github.com/red-blox/zap/blob/0.6.x/zap/src/config.rs#L258