File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -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 > {
@@ -777,6 +780,12 @@ macro_rules! impl_for_vec {
777
780
}
778
781
}
779
782
}
783
+ macro_rules! impl_for_vec {
784
+ ( $ty: ty $( , $name: ident) * ) => {
785
+ impl_writeable_for_vec!( $ty $( , $name) * ) ;
786
+ impl_readable_for_vec!( $ty $( , $name) * ) ;
787
+ }
788
+ }
780
789
781
790
impl Writeable for Vec < u8 > {
782
791
#[ inline]
You can’t perform that action at this time.
0 commit comments