Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 2e9bd1d

Browse files
committed
Correct the proc macro to emit pub functions
1 parent 5e360c1 commit 2e9bd1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/libm-macros/src/enums.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ pub fn function_enum(
5656

5757
impl #enum_name {
5858
/// The stringified version of this function name.
59-
const fn as_str(self) -> &'static str {
59+
pub const fn as_str(self) -> &'static str {
6060
match self {
6161
#( #as_str_arms , )*
6262
}
6363
}
6464

6565
/// The base name enum for this function.
66-
const fn base_name(self) -> #base_enum {
66+
pub const fn base_name(self) -> #base_enum {
6767
match self {
6868
#( #base_arms, )*
6969
}
@@ -111,7 +111,7 @@ pub fn base_name_enum(
111111

112112
impl #item_name {
113113
/// The stringified version of this base name.
114-
const fn as_str(self) -> &'static str {
114+
pub const fn as_str(self) -> &'static str {
115115
match self {
116116
#( #as_str_arms ),*
117117
}

0 commit comments

Comments
 (0)