library_postprocessing: Don't expect c:type for FixedArray
As of
fixed-size arrays are no longer generated with c:type, thus
we need to set c_type manually.
Fixes
@@ -316,6 +316,11 @@ impl Library {
actions.push((tid, fid, Action::SetCType("void*".to_owned())));
continue;
}
+ if let Type::FixedArray(_, _, Some(ref c_type)) = *field_type {
+ // fixed-size Arrays can only have inner c_type
+ actions.push((tid, fid, Action::SetCType(c_type.clone())));
+ continue;
+ }
error!("Field `{}::{}` is missing c:type", name, &field.name);
}
},
