aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib
diff options
context:
space:
mode:
Diffstat (limited to 'codegen/lib')
-rw-r--r--codegen/lib/code/tags.py1
1 files changed, 1 insertions, 0 deletions
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<RegistryTag<{struct_name}>> = 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])