diff options
| author | mat <git@matdoes.dev> | 2024-04-23 21:16:18 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-04-23 21:16:18 -0500 |
| commit | 3b635c1d6de97ccceaf725dbfcd1625cbebdc20b (patch) | |
| tree | a1d0798a9f508442a530f43bad063cfb8c7cf256 /codegen/lib/code | |
| parent | 1d80f531b74bc3b31023753acb81b35efcdadd73 (diff) | |
| download | azalea-drasl-3b635c1d6de97ccceaf725dbfcd1625cbebdc20b.tar.xz | |
sort generated tags
Diffstat (limited to 'codegen/lib/code')
| -rw-r--r-- | codegen/lib/code/tags.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/lib/code/tags.py b/codegen/lib/code/tags.py index 40b60ae3..ae409001 100644 --- a/codegen/lib/code/tags.py +++ b/codegen/lib/code/tags.py @@ -16,7 +16,7 @@ use crate::{struct_name}; ''' - for tag_name, tag in registries.items(): + for tag_name, tag in sorted(registries.items(), key=lambda x: x[0]): tag_name = tag_name.replace('/', '_') static_set_name = to_snake_case(tag_name).upper() generated += f'pub static {static_set_name}: Lazy<HashSet<{struct_name}>> = Lazy::new(|| HashSet::from_iter(vec