Skip to content

Commit

Permalink
Fixed requested thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweattypalms committed Jan 4, 2025
1 parent 0bc7313 commit dfc5272
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/derive_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
}

0 comments on commit dfc5272

Please sign in to comment.