Add visibility modifier to compat macro

This commit is contained in:
Chris Denton 2022-08-04 00:20:06 +01:00
parent 1b57946a40
commit aac82a9e18
No known key found for this signature in database
GPG key ID: 713472F2F45627DE

View file

@ -151,7 +151,7 @@ impl Module {
macro_rules! compat_fn_with_fallback {
(pub static $module:ident: &CStr = $name:expr; $(
$(#[$meta:meta])*
pub fn $symbol:ident($($argname:ident: $argtype:ty),*) -> $rettype:ty $fallback_body:block
$vis:vis fn $symbol:ident($($argname:ident: $argtype:ty),*) -> $rettype:ty $fallback_body:block
)*) => (
pub static $module: &CStr = $name;
$(
@ -208,7 +208,7 @@ macro_rules! compat_fn_with_fallback {
}
}
$(#[$meta])*
pub use $symbol::call as $symbol;
$vis use $symbol::call as $symbol;
)*)
}