use builtin hash functions instead of rolling my own

This commit is contained in:
Alessandro Mauri 2024-11-21 00:50:11 +01:00
parent bb1745a05d
commit 9a785e0f06
5 changed files with 5 additions and 21 deletions

View file

@ -28,7 +28,7 @@ macro Ctx.get_elem(&ctx, Id id)
// if it does't find one
macro Ctx.get_elem_by_label(&ctx, String label)
{
Id id = hash(label);
Id id = label.hash();
return ctx.cache.search(id);
}