Move ModuleNameEnum into HeaderType

This commit is contained in:
Richard Feldman 2022-12-06 16:41:31 -05:00
parent e2137cc310
commit 97332e4af1
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
3 changed files with 48 additions and 68 deletions

View file

@ -204,6 +204,7 @@ impl GeneratedInfo {
HeaderType::Hosted {
generates,
generates_with,
name: _,
} => {
let name: &str = generates.into();
let (generated_functions, unknown_generated) =
@ -236,7 +237,10 @@ impl GeneratedInfo {
generated_functions,
}
}
HeaderType::Builtin { generates_with } => {
HeaderType::Builtin {
generates_with,
name: _,
} => {
debug_assert!(generates_with.is_empty());
GeneratedInfo::Builtin
}