chore: rename private macroses

This commit is contained in:
Dmitriy Pleshevskiy 2019-12-23 09:48:38 +03:00
parent 1ab465680f
commit d0f1d69d70
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "itconfig" name = "itconfig"
version = "0.2.0" version = "0.2.1"
authors = ["Dmitriy Pleshevskiy <dmitriy@ideascup.me>"] authors = ["Dmitriy Pleshevskiy <dmitriy@ideascup.me>"]
description = "Easy build a configs from environment variables and use it in globally." description = "Easy build a configs from environment variables and use it in globally."
categories = ["config", "web-programming"] categories = ["config", "web-programming"]

View file

@ -261,7 +261,7 @@ macro_rules! __itconfig_parse_variables {
tokens = [], tokens = [],
$($args:tt)* $($args:tt)*
) => { ) => {
__config_impl!($($args)*); __itconfig_impl!($($args)*);
}; };
// Invalid syntax // Invalid syntax
@ -273,7 +273,7 @@ macro_rules! __itconfig_parse_variables {
#[macro_export] #[macro_export]
#[doc(hidden)] #[doc(hidden)]
macro_rules! __config_impl { macro_rules! __itconfig_impl {
( (
variables = [$({ variables = [$({
name = $name:ident, name = $name:ident,
@ -292,7 +292,7 @@ macro_rules! __config_impl {
$($name();)+ $($name();)+
} }
$(__config_variable! { $(__itconfig_variable! {
name = $name, name = $name,
$($variable)* $($variable)*
})+ })+
@ -303,7 +303,7 @@ macro_rules! __config_impl {
#[macro_export] #[macro_export]
#[doc(hidden)] #[doc(hidden)]
macro_rules! __config_variable { macro_rules! __itconfig_variable {
// Add method with default value // Add method with default value
( (
name = $name:ident, name = $name:ident,