diff --git a/inline-postgres-macros/src/table/mod.rs b/inline-postgres-macros/src/table/mod.rs index 4085712..c8c0657 100644 --- a/inline-postgres-macros/src/table/mod.rs +++ b/inline-postgres-macros/src/table/mod.rs @@ -171,13 +171,13 @@ pub fn table(input: TokenStream) -> TokenStream { let expanded = quote! { #[automatically_derived] impl #ty_name { - fn new(#new_args) -> Self { + pub fn new(#new_args) -> Self { Self { id: Key::new(), #new_args_assignment } } - const fn has_field(field: &[u8]) -> bool { + pub const fn has_field(field: &[u8]) -> bool { match field { #has_field_matching _ => false,