mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
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
This commit is contained in:
committed by
Gavin Wood
parent
f329908887
commit
1df8ac9751
@@ -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 {
|
||||
|
||||
@@ -47,13 +47,13 @@ pub trait Get<T> {
|
||||
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) => {
|
||||
|
||||
Reference in New Issue
Block a user