fix(static): add empty imports without static feature
This commit is contained in:
parent
8d460ba24c
commit
e54edc2c81
1 changed files with 6 additions and 4 deletions
|
@ -348,6 +348,10 @@ macro_rules! __itconfig_parse_module {
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
macro_rules! __itconfig_impl_static_feature {
|
macro_rules! __itconfig_impl_static_feature {
|
||||||
|
(@import_modules) => {
|
||||||
|
use $crate::lazy_static::lazy_static;
|
||||||
|
};
|
||||||
|
|
||||||
(
|
(
|
||||||
unparsed_meta = $meta:tt,
|
unparsed_meta = $meta:tt,
|
||||||
unparsed_concat = $concat:tt,
|
unparsed_concat = $concat:tt,
|
||||||
|
@ -372,10 +376,6 @@ macro_rules! __itconfig_impl_static_feature {
|
||||||
$($args)*
|
$($args)*
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
(@import_modules) => {
|
|
||||||
use $crate::lazy_static::lazy_static;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -383,6 +383,8 @@ macro_rules! __itconfig_impl_static_feature {
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
macro_rules! __itconfig_impl_static_feature {
|
macro_rules! __itconfig_impl_static_feature {
|
||||||
|
(@import_modules) => { };
|
||||||
|
|
||||||
($($tt:tt)*) => {
|
($($tt:tt)*) => {
|
||||||
compile_error!(
|
compile_error!(
|
||||||
"Feature `static` is required for enable this macro function.\
|
"Feature `static` is required for enable this macro function.\
|
||||||
|
|
Reference in a new issue