From 9ffd0e80bbb3feace231553d6539124585b03e3c Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 6 May 2026 03:36:16 -0100 Subject: change panicking functions in Client and EntityRef to return an AzaleaResult instead --- codegen/lib/code/tags.py | 1 + 1 file changed, 1 insertion(+) (limited to 'codegen') diff --git a/codegen/lib/code/tags.py b/codegen/lib/code/tags.py index 2a44d35c..e5a21bdc 100644 --- a/codegen/lib/code/tags.py +++ b/codegen/lib/code/tags.py @@ -62,6 +62,7 @@ use crate::{{{registry_module}::{struct_name}, tags::RegistryTag}}; generated += f"pub static {static_set_name}: LazyLock> = LazyLock::new(|| RegistryTag::new(vec![" if not is_data_registry: + assert protocol_ids is not None # this is important because we binary search registries in some cases # and they need to be sorted by their rust Ord order entries.sort(key=lambda e: protocol_ids[e]) -- cgit v1.2.3