Account for IngredientCache::get_or_create() taking &Zalsa and not &dyn Database

This commit is contained in:
Chayim Refael Friedman 2025-04-22 14:02:55 +03:00
parent 676f2121e6
commit a27da3141c

View file

@ -112,7 +112,7 @@ const _: () = {
{
static CACHE: zalsa_::IngredientCache<zalsa_struct_::IngredientImpl<SyntaxContext>> =
zalsa_::IngredientCache::new();
CACHE.get_or_create(db.as_dyn_database(), || {
CACHE.get_or_create(db.zalsa(), || {
db.zalsa().add_or_lookup_jar_by_type::<zalsa_struct_::JarImpl<SyntaxContext>>()
})
}