From e54edc2c819f0f44123f539fe27dccda88eb12e8 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 12 Feb 2020 10:04:48 +0300 Subject: [PATCH] fix(static): add empty imports without static feature --- itconfig/src/macro.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/itconfig/src/macro.rs b/itconfig/src/macro.rs index f366e6f..9ba8a2f 100644 --- a/itconfig/src/macro.rs +++ b/itconfig/src/macro.rs @@ -348,6 +348,10 @@ macro_rules! __itconfig_parse_module { #[macro_export] #[doc(hidden)] macro_rules! __itconfig_impl_static_feature { + (@import_modules) => { + use $crate::lazy_static::lazy_static; + }; + ( unparsed_meta = $meta:tt, unparsed_concat = $concat:tt, @@ -372,10 +376,6 @@ macro_rules! __itconfig_impl_static_feature { $($args)* } }; - - (@import_modules) => { - use $crate::lazy_static::lazy_static; - }; } @@ -383,6 +383,8 @@ macro_rules! __itconfig_impl_static_feature { #[macro_export] #[doc(hidden)] macro_rules! __itconfig_impl_static_feature { + (@import_modules) => { }; + ($($tt:tt)*) => { compile_error!( "Feature `static` is required for enable this macro function.\