Don't use VecFixed for [u8; <length>] (#3205)
This commit is contained in:
parent
1330c88d3b
commit
7b2c5cf5cf
@ -115,6 +115,10 @@ function fromDef ({ displayName, info, sub, type }: TypeDef): string {
|
||||
: 'Vec';
|
||||
|
||||
case TypeDefInfo.VecFixed:
|
||||
if ((sub as TypeDef).type === 'u8') {
|
||||
return type;
|
||||
}
|
||||
|
||||
return 'VecFixed';
|
||||
|
||||
default:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user