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