Macro spell fixes (#2442)

This commit is contained in:
Jordan Beauchamp
2019-05-01 19:49:51 +12:00
committed by Gavin Wood
parent 3c42e6d4f0
commit b6d5f6858c
2 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ pub use srml_metadata::{EventMetadata, DecodeDifferent, OuterEventMetadata, FnEn
/// type Token; /// type Token;
/// } /// }
/// ///
/// // For module with instances, DefaultInstance is optionnal /// // For module with instances, DefaultInstance is optional
/// srml_support::decl_event!( /// srml_support::decl_event!(
/// pub enum Event<T, I: Instance = DefaultInstance> where /// pub enum Event<T, I: Instance = DefaultInstance> where
/// <T as Trait>::Balance, /// <T as Trait>::Balance,
@@ -613,7 +613,7 @@ mod tests {
} }
decl_event!( decl_event!(
/// Event finish formatting on an named one with trailling comma /// Event finish formatting on an named one with trailing comma
pub enum Event<T> where pub enum Event<T> where
BalanceRenamed = <T as Trait>::Balance, BalanceRenamed = <T as Trait>::Balance,
OriginRenamed = <T as Trait>::Origin, OriginRenamed = <T as Trait>::Origin,
+9 -9
View File
@@ -343,7 +343,7 @@ macro_rules! __create_decl_macro {
$d( $system:ident )?; $d( $system:ident )?;
{ $d( $parsed:tt )* }; { $d( $parsed:tt )* };
$name:ident : $module:ident:: < $module_instance:ident >:: { $name:ident : $module:ident:: < $module_instance:ident >:: {
$macro_enum_name <$event_generic:ident, $event_instance:path> $d(, $ingore:ident $d( <$ignor:ident $d(, $ignore_instance:path)?> )* )* $macro_enum_name <$event_generic:ident, $event_instance:path> $d(, $ignore:ident $d( <$ignor:ident $d(, $ignore_instance:path)?> )* )*
}, },
$d( $rest:tt )* $d( $rest:tt )*
) => { ) => {
@@ -362,7 +362,7 @@ macro_rules! __create_decl_macro {
$d( $system:ident )?; $d( $system:ident )?;
{ $d( $parsed:tt )* }; { $d( $parsed:tt )* };
$name:ident : $module:ident:: < $module_instance:ident >:: { $name:ident : $module:ident:: < $module_instance:ident >:: {
$macro_enum_name $d( <$event_generic:ident> )* $d(, $ingore:ident $d( <$ignor:ident $d(, $ignore_instance:path)?> )* )* $macro_enum_name $d( <$event_generic:ident> )* $d(, $ignore:ident $d( <$ignor:ident $d(, $ignore_instance:path)?> )* )*
}, },
$d( $rest:tt )* $d( $rest:tt )*
) => { ) => {
@@ -378,7 +378,7 @@ macro_rules! __create_decl_macro {
$d( $system:ident )?; $d( $system:ident )?;
{ $d( $parsed:tt )* }; { $d( $parsed:tt )* };
$name:ident : $module:ident:: { $name:ident : $module:ident:: {
$macro_enum_name $d( <$event_generic:ident $d(, $event_instance:path)?> )* $d(, $ingore:ident $d( <$ignor:ident $d(, $ignore_instance:path)?> )* )* $macro_enum_name $d( <$event_generic:ident $d(, $event_instance:path)?> )* $d(, $ignore:ident $d( <$ignor:ident $d(, $ignore_instance:path)?> )* )*
}, },
$d( $rest:tt )* $d( $rest:tt )*
) => { ) => {
@@ -397,7 +397,7 @@ macro_rules! __create_decl_macro {
$d( $system:ident )?; $d( $system:ident )?;
{ $d( $parsed:tt )* }; { $d( $parsed:tt )* };
$name:ident : $module:ident:: $d( < $module_instance:ident >:: )? { $name:ident : $module:ident:: $d( < $module_instance:ident >:: )? {
$ingore:ident $d( <$ignor:ident $d(, $ignore_instance:path)?> )* $d(, $modules:ident $d( <$modules_generic:ident $d(, $modules_instance:path)?> )* )* $ignore:ident $d( <$ignor:ident $d(, $ignore_instance:path)?> )* $d(, $modules:ident $d( <$modules_generic:ident $d(, $modules_instance:path)?> )* )*
}, },
$d( $rest:tt )* $d( $rest:tt )*
) => { ) => {
@@ -485,7 +485,7 @@ macro_rules! __decl_all_modules {
$runtime:ident; $runtime:ident;
$( $system:ident )?; $( $system:ident )?;
{ $( $parsed:tt )* }; { $( $parsed:tt )* };
$name:ident: $module:ident:: $( < $module_instance:ident >:: )? { $ingore:ident $(, $modules:ident )* }, $name:ident: $module:ident:: $( < $module_instance:ident >:: )? { $ignore:ident $(, $modules:ident )* },
$( $rest:tt )* $( $rest:tt )*
) => { ) => {
$crate::__decl_all_modules!( $crate::__decl_all_modules!(
@@ -532,7 +532,7 @@ macro_rules! __decl_outer_dispatch {
$runtime:ident; $runtime:ident;
$( $parsed_modules:ident :: $parsed_name:ident ),*; $( $parsed_modules:ident :: $parsed_name:ident ),*;
System: $module:ident::{ System: $module:ident::{
$ingore:ident $( <$ignor:ident> )* $(, $modules:ident $( <$modules_generic:ident> )* )* $ignore:ident $( <$ignor:ident> )* $(, $modules:ident $( <$modules_generic:ident> )* )*
} }
$(, $rest_name:ident : $rest_module:ident::{ $(, $rest_name:ident : $rest_module:ident::{
$( $rest_modules:ident $( <$rest_modules_generic:ident> )* ),* $( $rest_modules:ident $( <$rest_modules_generic:ident> )* ),*
@@ -572,7 +572,7 @@ macro_rules! __decl_outer_dispatch {
$runtime:ident; $runtime:ident;
$( $parsed_modules:ident :: $parsed_name:ident ),*; $( $parsed_modules:ident :: $parsed_name:ident ),*;
$name:ident: $module:ident::{ $name:ident: $module:ident::{
$ingore:ident $( <$ignor:ident> )* $(, $modules:ident $( <$modules_generic:ident> )* )* $ignore:ident $( <$ignor:ident> )* $(, $modules:ident $( <$modules_generic:ident> )* )*
} }
$(, $rest_name:ident : $rest_module:ident::{ $(, $rest_name:ident : $rest_module:ident::{
$( $rest_modules:ident $( <$rest_modules_generic:ident> )* ),* $( $rest_modules:ident $( <$rest_modules_generic:ident> )* ),*
@@ -783,7 +783,7 @@ macro_rules! __decl_outer_config {
$runtime:ident; $runtime:ident;
{ $( $parsed:tt )* }; { $( $parsed:tt )* };
$name:ident: $module:ident:: $( < $module_instance:ident >:: )? { $name:ident: $module:ident:: $( < $module_instance:ident >:: )? {
$ingore:ident $( <$ignor:ident $(, $ignore_instance:path)?> )* $(, $modules:ident $( <$modules_generic:ident $(, $modules_instance:path)?> )* )* $ignore:ident $( <$ignor:ident $(, $ignore_instance:path)?> )* $(, $modules:ident $( <$modules_generic:ident $(, $modules_instance:path)?> )* )*
}, },
$( $rest:tt )* $( $rest:tt )*
) => { ) => {
@@ -880,7 +880,7 @@ macro_rules! __decl_outer_inherent {
$uncheckedextrinsic:ident; $uncheckedextrinsic:ident;
$( $parsed_name:ident :: $parsed_call:ident ),*; $( $parsed_name:ident :: $parsed_call:ident ),*;
$name:ident: $module:ident::{ $name:ident: $module:ident::{
$ingore:ident $( ( $( $ignor:ident )* ) )* $ignore:ident $( ( $( $ignor:ident )* ) )*
$(, $modules:ident $( ( $( $modules_call:ident )* ) )* )* $(, $modules:ident $( ( $( $modules_call:ident )* ) )* )*
} }
$(, $rest_name:ident : $rest_module:ident::{ $(, $rest_name:ident : $rest_module:ident::{