@@ -27,7 +27,7 @@ pub trait VarIntAsyncWriter {
2727#[ async_trait:: async_trait( ?Send ) ]
2828impl < AW : AsyncWrite + Unpin > VarIntAsyncWriter for AW {
2929 async fn write_varint_async < VI : VarInt > ( & mut self , n : VI ) -> Result < usize > {
30- let mut buf = [ 0 as u8 ; 10 ] ;
30+ let mut buf = [ 0_u8 ; 10 ] ;
3131 let b = n. encode_var ( & mut buf) ;
3232 self . write_all ( & buf[ 0 ..b] ) . await ?;
3333 Ok ( b)
@@ -36,7 +36,7 @@ impl<AW: AsyncWrite + Unpin> VarIntAsyncWriter for AW {
3636
3737impl < Inner : Write > VarIntWriter for Inner {
3838 fn write_varint < VI : VarInt > ( & mut self , n : VI ) -> Result < usize > {
39- let mut buf = [ 0 as u8 ; 10 ] ;
39+ let mut buf = [ 0_u8 ; 10 ] ;
4040 let used = n. encode_var ( & mut buf[ ..] ) ;
4141
4242 self . write_all ( & buf[ 0 ..used] ) ?;
@@ -59,7 +59,7 @@ pub trait FixedIntAsyncWriter {
5959#[ async_trait:: async_trait( ?Send ) ]
6060impl < AW : AsyncWrite + Unpin > FixedIntAsyncWriter for AW {
6161 async fn write_fixedint_async < FI : FixedInt > ( & mut self , n : FI ) -> Result < usize > {
62- let mut buf = [ 0 as u8 ; 8 ] ;
62+ let mut buf = [ 0_u8 ; 8 ] ;
6363 n. encode_fixed ( & mut buf[ ..std:: mem:: size_of :: < FI > ( ) ] ) ;
6464 self . write_all ( & buf[ ..std:: mem:: size_of :: < FI > ( ) ] ) . await ?;
6565 Ok ( std:: mem:: size_of :: < FI > ( ) )
@@ -68,7 +68,7 @@ impl<AW: AsyncWrite + Unpin> FixedIntAsyncWriter for AW {
6868
6969impl < W : Write > FixedIntWriter for W {
7070 fn write_fixedint < FI : FixedInt > ( & mut self , n : FI ) -> Result < usize > {
71- let mut buf = [ 0 as u8 ; 8 ] ;
71+ let mut buf = [ 0_u8 ; 8 ] ;
7272 n. encode_fixed ( & mut buf[ ..std:: mem:: size_of :: < FI > ( ) ] ) ;
7373
7474 self . write_all ( & buf[ ..std:: mem:: size_of :: < FI > ( ) ] ) ?;
0 commit comments