From d0f1d69d70f4c2e5ae63411a07e50a29a463147a Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Mon, 23 Dec 2019 09:48:38 +0300 Subject: [PATCH] chore: rename private macroses --- Cargo.toml | 2 +- src/lib.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7096480..4989b7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "itconfig" -version = "0.2.0" +version = "0.2.1" authors = ["Dmitriy Pleshevskiy "] description = "Easy build a configs from environment variables and use it in globally." categories = ["config", "web-programming"] diff --git a/src/lib.rs b/src/lib.rs index b79df1b..482c0bc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -261,7 +261,7 @@ macro_rules! __itconfig_parse_variables { tokens = [], $($args:tt)* ) => { - __config_impl!($($args)*); + __itconfig_impl!($($args)*); }; // Invalid syntax @@ -273,7 +273,7 @@ macro_rules! __itconfig_parse_variables { #[macro_export] #[doc(hidden)] -macro_rules! __config_impl { +macro_rules! __itconfig_impl { ( variables = [$({ name = $name:ident, @@ -292,7 +292,7 @@ macro_rules! __config_impl { $($name();)+ } - $(__config_variable! { + $(__itconfig_variable! { name = $name, $($variable)* })+ @@ -303,7 +303,7 @@ macro_rules! __config_impl { #[macro_export] #[doc(hidden)] -macro_rules! __config_variable { +macro_rules! __itconfig_variable { // Add method with default value ( name = $name:ident,