@@ -749,7 +749,7 @@ where T: Readable + Eq + Hash
749
749
}
750
750
751
751
// Vectors
752
- macro_rules! impl_for_vec {
752
+ macro_rules! impl_writeable_for_vec {
753
753
( $ty: ty $( , $name: ident) * ) => {
754
754
impl <$( $name : Writeable ) ,* > Writeable for Vec <$ty> {
755
755
#[ inline]
@@ -761,7 +761,10 @@ macro_rules! impl_for_vec {
761
761
Ok ( ( ) )
762
762
}
763
763
}
764
-
764
+ }
765
+ }
766
+ macro_rules! impl_readable_for_vec {
767
+ ( $ty: ty $( , $name: ident) * ) => {
765
768
impl <$( $name : Readable ) ,* > Readable for Vec <$ty> {
766
769
#[ inline]
767
770
fn read<R : Read >( r: & mut R ) -> Result <Self , DecodeError > {
@@ -802,9 +805,12 @@ impl Readable for Vec<u8> {
802
805
}
803
806
}
804
807
805
- impl_for_vec ! ( ecdsa:: Signature ) ;
806
- impl_for_vec ! ( crate :: ln:: channelmanager:: MonitorUpdateCompletionAction ) ;
807
- impl_for_vec ! ( ( A , B ) , A , B ) ;
808
+ impl_writeable_for_vec ! ( ecdsa:: Signature ) ;
809
+ impl_readable_for_vec ! ( ecdsa:: Signature ) ;
810
+ impl_writeable_for_vec ! ( crate :: ln:: channelmanager:: MonitorUpdateCompletionAction ) ;
811
+ impl_readable_for_vec ! ( crate :: ln:: channelmanager:: MonitorUpdateCompletionAction ) ;
812
+ impl_writeable_for_vec ! ( ( A , B ) , A , B ) ;
813
+ impl_readable_for_vec ! ( ( A , B ) , A , B ) ;
808
814
809
815
impl Writeable for Script {
810
816
fn write < W : Writer > ( & self , w : & mut W ) -> Result < ( ) , io:: Error > {
0 commit comments