@@ -544,19 +544,19 @@ where
544544#[ cfg_attr( any( feature = "std" , feature = "decode" ) , derive( scale:: Decode ) ) ]
545545#[ derive( PartialEq , Eq , PartialOrd , Ord , Clone , Encode , Debug ) ]
546546pub struct TypeDefBitSequence < T : Form = MetaForm > {
547- /// The type implementing [`bitvec::store::BitStore`].
548- bit_store_type : T :: Type ,
549547 /// The type implementing [`bitvec::order::BitOrder`].
550548 bit_order_type : T :: Type ,
549+ /// The type implementing [`bitvec::store::BitStore`].
550+ bit_store_type : T :: Type ,
551551}
552552
553553impl IntoPortable for TypeDefBitSequence {
554554 type Output = TypeDefBitSequence < PortableForm > ;
555555
556556 fn into_portable ( self , registry : & mut Registry ) -> Self :: Output {
557557 TypeDefBitSequence {
558- bit_store_type : registry. register_type ( & self . bit_store_type ) ,
559558 bit_order_type : registry. register_type ( & self . bit_order_type ) ,
559+ bit_store_type : registry. register_type ( & self . bit_store_type ) ,
560560 }
561561 }
562562}
@@ -579,14 +579,14 @@ where
579579#[ cfg( feature = "bit-vec" ) ]
580580impl TypeDefBitSequence {
581581 /// Creates a new [`TypeDefBitSequence`] for the supplied bit order and bit store types.
582- pub fn new < O , T > ( ) -> Self
582+ pub fn new < T , O > ( ) -> Self
583583 where
584- O : bitvec:: order:: BitOrder + TypeInfo + ' static ,
585584 T : bitvec:: store:: BitStore + TypeInfo + ' static ,
585+ O : bitvec:: order:: BitOrder + TypeInfo + ' static ,
586586 {
587587 Self {
588- bit_order_type : MetaType :: new :: < O > ( ) ,
589588 bit_store_type : MetaType :: new :: < T > ( ) ,
589+ bit_order_type : MetaType :: new :: < O > ( ) ,
590590 }
591591 }
592592}
0 commit comments