@@ -78,7 +78,8 @@ impl Decoder for ByteVecDecoder {
7878 type Error = ByteVecDecoderError ;
7979
8080 fn push_bytes ( & mut self , bytes : & mut & [ u8 ] ) -> Result < bool , Self :: Error > {
81- use { ByteVecDecoderError as E , ByteVecDecoderErrorInner as Inner } ;
81+ use ByteVecDecoderError as E ;
82+ use ByteVecDecoderErrorInner as Inner ;
8283
8384 if let Some ( mut decoder) = self . prefix_decoder . take ( ) {
8485 if decoder. push_bytes ( bytes) . map_err ( |e| E ( Inner :: LengthPrefixDecode ( e) ) ) ? {
@@ -106,7 +107,8 @@ impl Decoder for ByteVecDecoder {
106107 }
107108
108109 fn end ( self ) -> Result < Self :: Output , Self :: Error > {
109- use { ByteVecDecoderError as E , ByteVecDecoderErrorInner as Inner } ;
110+ use ByteVecDecoderError as E ;
111+ use ByteVecDecoderErrorInner as Inner ;
110112
111113 if let Some ( ref prefix_decoder) = self . prefix_decoder {
112114 return Err ( E ( Inner :: UnexpectedEof ( UnexpectedEofError {
@@ -189,7 +191,8 @@ impl<T: Decodable> Decoder for VecDecoder<T> {
189191 type Error = VecDecoderError < <<T as Decodable >:: Decoder as Decoder >:: Error > ;
190192
191193 fn push_bytes ( & mut self , bytes : & mut & [ u8 ] ) -> Result < bool , Self :: Error > {
192- use { VecDecoderError as E , VecDecoderErrorInner as Inner } ;
194+ use VecDecoderError as E ;
195+ use VecDecoderErrorInner as Inner ;
193196
194197 if let Some ( mut decoder) = self . prefix_decoder . take ( ) {
195198 if decoder. push_bytes ( bytes) . map_err ( |e| E ( Inner :: LengthPrefixDecode ( e) ) ) ? {
0 commit comments