Collect reason that each alias is required trivial
diff --git a/gen/src/write.rs b/gen/src/write.rs
index ddde8a9..1f4b7bc 100644
--- a/gen/src/write.rs
+++ b/gen/src/write.rs
@@ -81,7 +81,7 @@
}
}
Api::TypeAlias(ety) => {
- if types.required_trivial_aliases.contains(&ety.ident) {
+ if types.required_trivial_aliases.contains_key(&ety.ident) {
check_trivial_extern_type(out, &ety.ident)
}
}
@@ -136,7 +136,7 @@
Some(CxxString) => out.include.string = true,
Some(Bool) | Some(Isize) | Some(F32) | Some(F64) | Some(RustString) => {}
None => {
- if types.required_trivial_aliases.contains(&ident) {
+ if types.required_trivial_aliases.contains_key(&ident) {
out.include.type_traits = true;
}
}