This fixes a bug where an array will be converted to
[u8; StringLiteral] which results in us deciding we don't know how
to map it.
Fixes: dec732cefbdd97585b7de7fd4a9521f44f1580dd
split.next().unwrap();
let tail_str = split.next().unwrap();
assert!(split.next().is_none());
- let len = &tail_str[..tail_str.len() - 1];
+ let len = usize::from_str_radix(&tail_str[..tail_str.len() - 1], 10).unwrap();
Some(parse_quote!([u8; #len]))
} else { None }
} else { None }