From dfc5272af6f108a7bdbf2eb6a50ad70a84e97c0e Mon Sep 17 00:00:00 2001 From: Sweattypalms Date: Sun, 5 Jan 2025 07:20:58 +0900 Subject: [PATCH] Fixed requested thing --- src/lib/derive_macros/src/lib.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/derive_macros/src/lib.rs b/src/lib/derive_macros/src/lib.rs index 88b31265..6f6ca1a8 100644 --- a/src/lib/derive_macros/src/lib.rs +++ b/src/lib/derive_macros/src/lib.rs @@ -59,14 +59,6 @@ pub fn packet(args: TokenStream, input: TokenStream) -> TokenStream { pub fn bake_packet_registry(input: TokenStream) -> TokenStream { net::packets::bake_registry(input) } -// #=================== PACKETS ===================# - -/// Get a registry entry from the registries.json file. -/// returns protocol_id (as u64) of the specified entry. -#[proc_macro] -pub fn get_registry_entry(input: TokenStream) -> TokenStream { - static_loading::registry::get(input) -} /// Get a packet entry from the packets.json file. /// returns protocol_id (as 0x??) of the specified packet. @@ -75,3 +67,11 @@ pub fn get_registry_entry(input: TokenStream) -> TokenStream { pub fn get_packet_entry(input: TokenStream) -> TokenStream { static_loading::packets::get(input) } +// #=================== PACKETS ===================# + +/// Get a registry entry from the registries.json file. +/// returns protocol_id (as u64) of the specified entry. +#[proc_macro] +pub fn get_registry_entry(input: TokenStream) -> TokenStream { + static_loading::registry::get(input) +}