Correct the proc macro to emit pub functions

This commit is contained in:
Trevor Gross 2024-11-02 16:52:28 -05:00 committed by Trevor Gross
parent d715142b4d
commit 6aef9e17c8

View file

@ -56,14 +56,14 @@ pub fn function_enum(
impl #enum_name {
/// The stringified version of this function name.
const fn as_str(self) -> &'static str {
pub const fn as_str(self) -> &'static str {
match self {
#( #as_str_arms , )*
}
}
/// The base name enum for this function.
const fn base_name(self) -> #base_enum {
pub const fn base_name(self) -> #base_enum {
match self {
#( #base_arms, )*
}
@ -111,7 +111,7 @@ pub fn base_name_enum(
impl #item_name {
/// The stringified version of this base name.
const fn as_str(self) -> &'static str {
pub const fn as_str(self) -> &'static str {
match self {
#( #as_str_arms ),*
}