Don't use VecFixed for [u8; <length>] (#3205)

This commit is contained in:
Jaco Greeff 2020-07-16 08:58:20 +02:00 committed by GitHub
parent 1330c88d3b
commit 7b2c5cf5cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: