mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 05:21:08 +00:00
Fix warnings and make CI working again (#4469)
* Fix warnings and make CI working again * Fix test
This commit is contained in:
committed by
Arkadiy Paronyan
parent
7d4c6354df
commit
bfad5f3ffc
@@ -1186,7 +1186,7 @@ macro_rules! decl_module {
|
||||
{
|
||||
#[doc(hidden)]
|
||||
#[codec(skip)]
|
||||
__PhantomItem($crate::sp_std::marker::PhantomData<($trait_instance $(, $instance)?)>, $crate::dispatch::Never),
|
||||
__PhantomItem($crate::sp_std::marker::PhantomData<($trait_instance, $($instance)?)>, $crate::dispatch::Never),
|
||||
$( $generated_variants )*
|
||||
}
|
||||
};
|
||||
@@ -1224,7 +1224,7 @@ macro_rules! decl_module {
|
||||
pub struct $mod_type<
|
||||
$trait_instance: $trait_name
|
||||
$(<I>, $instance: $instantiable $( = $module_default_instance)?)?
|
||||
>($crate::sp_std::marker::PhantomData<($trait_instance $(, $instance)?)>) where
|
||||
>($crate::sp_std::marker::PhantomData<($trait_instance, $( $instance)?)>) where
|
||||
$( $other_where_bounds )*;
|
||||
|
||||
$crate::decl_module! {
|
||||
@@ -1671,7 +1671,7 @@ macro_rules! __impl_module_constants_metadata {
|
||||
<I>, $const_instance: $const_instantiable
|
||||
)?
|
||||
>($crate::dispatch::marker::PhantomData<
|
||||
($const_trait_instance $(, $const_instance)?)
|
||||
($const_trait_instance, $( $const_instance)?)
|
||||
>);
|
||||
impl<$const_trait_instance: 'static + $const_trait_name $(
|
||||
<I>, $const_instance: $const_instantiable)?
|
||||
|
||||
@@ -86,7 +86,7 @@ macro_rules! decl_error {
|
||||
pub enum $error<$generic: $trait $(, $inst_generic: $instance)?> {
|
||||
#[doc(hidden)]
|
||||
__Ignore(
|
||||
$crate::sp_std::marker::PhantomData<($generic $(, $inst_generic)?)>,
|
||||
$crate::sp_std::marker::PhantomData<($generic, $( $inst_generic)?)>,
|
||||
$crate::dispatch::Never,
|
||||
),
|
||||
$(
|
||||
|
||||
@@ -79,7 +79,7 @@ mod tests {
|
||||
|
||||
COMPLEXTYPE1: ::std::vec::Vec<<T as Trait>::Origin>;
|
||||
COMPLEXTYPE2: (Vec<Vec<(u16,Box<( )>)>>, u32);
|
||||
COMPLEXTYPE3: ([u32;25]);
|
||||
COMPLEXTYPE3: [u32;25];
|
||||
}
|
||||
add_extra_genesis {
|
||||
build(|_| {});
|
||||
@@ -430,7 +430,7 @@ mod tests {
|
||||
StorageEntryMetadata {
|
||||
name: DecodeDifferent::Encode("COMPLEXTYPE3"),
|
||||
modifier: StorageEntryModifier::Default,
|
||||
ty: StorageEntryType::Plain(DecodeDifferent::Encode("([u32; 25])")),
|
||||
ty: StorageEntryType::Plain(DecodeDifferent::Encode("[u32; 25]")),
|
||||
default: DecodeDifferent::Encode(
|
||||
DefaultByteGetter(&__GetByteStructCOMPLEXTYPE3(PhantomData::<TraitImpl>))
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user