Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
malik672 committed Dec 11, 2024
1 parent 6cf9fca commit 40e263c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions zink/codegen/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,16 @@ fn parse_impl(input: DeriveInput) -> TokenStream {
};

let expanded = quote! {
impl Event for #name {
const NAME: &'static [u8] = #name_bytes;


fn log0(&self) {
impl #name {
pub fn log0(&self) {
match self {
#(#variant_implementations)*
}
}

pub const fn name() -> &'static [u8] {
#name_bytes
}
}
};

Expand Down

0 comments on commit 40e263c

Please sign in to comment.