Skip to content

Commit 1ac0d0e

Browse files
authored
enums: Make some c_macros functions private (#1026)
1 parent ca95d28 commit 1ac0d0e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

enums/templates/c_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ const {{ u_name }}: &[&str] = &[
66
{% endfor %}
77
];
88

9-
pub fn is_{{ l_name }}(mac: &str) -> bool {
9+
pub(crate) fn is_{{ l_name }}(mac: &str) -> bool {
1010
{{ u_name }}.contains(&mac)
1111
}

src/c_langs_macros/c_macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,6 @@ const PREDEFINED_MACROS: &[&str] = &[
221221
"UINT_LEAST8_MIN",
222222
];
223223

224-
pub fn is_predefined_macros(mac: &str) -> bool {
224+
pub(crate) fn is_predefined_macros(mac: &str) -> bool {
225225
PREDEFINED_MACROS.contains(&mac)
226226
}

src/c_langs_macros/c_specials.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ const SPECIALS: &[&str] = &[
6262
"wchar_t",
6363
];
6464

65-
pub fn is_specials(mac: &str) -> bool {
65+
pub(crate) fn is_specials(mac: &str) -> bool {
6666
SPECIALS.contains(&mac)
6767
}

src/c_langs_macros/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
mod c_macros;
2-
pub use c_macros::*;
2+
pub(crate) use c_macros::*;
33

44
mod c_specials;
5-
pub use c_specials::*;
5+
pub(crate) use c_specials::*;
66

77
#[cfg(test)]
88
mod tests {

0 commit comments

Comments
 (0)