@@ -334,7 +334,7 @@ pub struct CheckedData(pub Vec<u8>);
334
334
335
335
// Primitive types
336
336
macro_rules! impl_int_encodable {
337
- ( $ty: ident, $meth_dec: ident, $meth_enc: ident) => (
337
+ ( $ty: ident, $meth_dec: ident, $meth_enc: ident) => {
338
338
impl Decodable for $ty {
339
339
#[ inline]
340
340
fn consensus_decode<D : io:: Read >( mut d: D ) -> Result <Self , Error > {
@@ -348,7 +348,7 @@ macro_rules! impl_int_encodable {
348
348
Ok ( mem:: size_of:: <$ty>( ) )
349
349
}
350
350
}
351
- )
351
+ }
352
352
}
353
353
354
354
impl_int_encodable ! ( u8 , read_u8, emit_u8) ;
@@ -494,7 +494,7 @@ impl Decodable for Cow<'static, str> {
494
494
495
495
// Arrays
496
496
macro_rules! impl_array {
497
- ( $size: expr ) => (
497
+ ( $size: expr ) => {
498
498
impl Encodable for [ u8 ; $size] {
499
499
#[ inline]
500
500
fn consensus_encode<S : WriteExt >( & self , mut s: S ) -> Result <usize , io:: Error > {
@@ -511,7 +511,7 @@ macro_rules! impl_array {
511
511
Ok ( ret)
512
512
}
513
513
}
514
- ) ;
514
+ } ;
515
515
}
516
516
517
517
impl_array ! ( 2 ) ;
@@ -702,7 +702,7 @@ impl<T: Encodable> Encodable for sync::Arc<T> {
702
702
703
703
// Tuples
704
704
macro_rules! tuple_encode {
705
- ( $( $x: ident) ,* ) => (
705
+ ( $( $x: ident) ,* ) => {
706
706
impl <$( $x: Encodable ) ,* > Encodable for ( $( $x) ,* ) {
707
707
#[ inline]
708
708
#[ allow( non_snake_case) ]
@@ -724,7 +724,7 @@ macro_rules! tuple_encode {
724
724
Ok ( ( $( { let $x = Decodable :: consensus_decode( & mut d) ?; $x } ) ,* ) )
725
725
}
726
726
}
727
- ) ;
727
+ } ;
728
728
}
729
729
730
730
tuple_encode ! ( T0 , T1 ) ;
0 commit comments