Refactor typeregister's BUILTIN_ENUMS => BUILTIN.enums

This will allow us to add more buildin types to this thread local
in follow-up patches, to reduce the number of thread local slots.
This commit is contained in:
Milian Wolff 2024-10-27 13:30:10 +01:00 committed by Olivier Goffart
parent 00dec34d34
commit 6e9e66ea7d
9 changed files with 29 additions and 19 deletions

View file

@ -259,7 +259,7 @@ impl BuiltinFunction {
}),
BuiltinFunction::ColorScheme => interned_type!(Function {
return_type: Type::Enumeration(
crate::typeregister::BUILTIN_ENUMS.with(|e| e.ColorScheme.clone()),
crate::typeregister::BUILTIN.with(|e| e.enums.ColorScheme.clone()),
),
args: vec![],
}),