make new function public

This commit is contained in:
Jonas Maier 2023-07-29 12:10:16 +02:00
parent 647d81b645
commit dadb0f5818

View File

@ -171,13 +171,13 @@ pub fn table(input: TokenStream) -> TokenStream {
let expanded = quote! { let expanded = quote! {
#[automatically_derived] #[automatically_derived]
impl #ty_name { impl #ty_name {
fn new(#new_args) -> Self { pub fn new(#new_args) -> Self {
Self { Self {
id: Key::new(), id: Key::new(),
#new_args_assignment #new_args_assignment
} }
} }
const fn has_field(field: &[u8]) -> bool { pub const fn has_field(field: &[u8]) -> bool {
match field { match field {
#has_field_matching #has_field_matching
_ => false, _ => false,