Skip to content

Commit aac82a9

Browse files
committed
Add visibility modifier to compat macro
1 parent 1b57946 commit aac82a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/sys/windows/compat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl Module {
151151
macro_rules! compat_fn_with_fallback {
152152
(pub static $module:ident: &CStr = $name:expr; $(
153153
$(#[$meta:meta])*
154-
pub fn $symbol:ident($($argname:ident: $argtype:ty),*) -> $rettype:ty $fallback_body:block
154+
$vis:vis fn $symbol:ident($($argname:ident: $argtype:ty),*) -> $rettype:ty $fallback_body:block
155155
)*) => (
156156
pub static $module: &CStr = $name;
157157
$(
@@ -208,7 +208,7 @@ macro_rules! compat_fn_with_fallback {
208208
}
209209
}
210210
$(#[$meta])*
211-
pub use $symbol::call as $symbol;
211+
$vis use $symbol::call as $symbol;
212212
)*)
213213
}
214214

0 commit comments

Comments
 (0)