From 1df8ac97511069a23a17f5453492c71fc5bcfc04 Mon Sep 17 00:00:00 2001 From: Stanislav Tkach Date: Tue, 28 May 2019 18:14:48 +0300 Subject: [PATCH] Use $crate inside of native_executor_instance and parameter_types macros (#2702) * Use inside of native_executor_instance macro * Same for the parameter_types macro --- substrate/core/executor/src/native_executor.rs | 2 +- substrate/srml/support/src/traits.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/substrate/core/executor/src/native_executor.rs b/substrate/core/executor/src/native_executor.rs index 0a6f50d001..729346cbee 100644 --- a/substrate/core/executor/src/native_executor.rs +++ b/substrate/core/executor/src/native_executor.rs @@ -272,7 +272,7 @@ macro_rules! native_executor_instance { ( $pub:vis $name:ident, $dispatcher:path, $version:path, $code:expr) => { /// A unit struct which implements `NativeExecutionDispatch` feeding in the hard-coded runtime. $pub struct $name; - native_executor_instance!(IMPL $name, $dispatcher, $version, $code); + $crate::native_executor_instance!(IMPL $name, $dispatcher, $version, $code); }; (IMPL $name:ident, $dispatcher:path, $version:path, $code:expr) => { impl $crate::NativeExecutionDispatch for $name { diff --git a/substrate/srml/support/src/traits.rs b/substrate/srml/support/src/traits.rs index a8db5a946e..dd4398844c 100644 --- a/substrate/srml/support/src/traits.rs +++ b/substrate/srml/support/src/traits.rs @@ -47,13 +47,13 @@ pub trait Get { macro_rules! parameter_types { (pub const $name:ident: $type:ty = $value:expr; $( $rest:tt )*) => ( pub struct $name; - parameter_types!{IMPL $name , $type , $value} - parameter_types!{ $( $rest )* } + $crate::parameter_types!{IMPL $name , $type , $value} + $crate::parameter_types!{ $( $rest )* } ); (const $name:ident: $type:ty = $value:expr; $( $rest:tt )*) => ( struct $name; - parameter_types!{IMPL $name , $type , $value} - parameter_types!{ $( $rest )* } + $crate::parameter_types!{IMPL $name , $type , $value} + $crate::parameter_types!{ $( $rest )* } ); () => (); (IMPL $name:ident , $type:ty , $value:expr) => {