9494 tendril. pop_back ( BUFFER_SIZE - n as u32 ) ;
9595 self . process ( tendril) ;
9696 break ;
97- }
98- Err ( ref e) if e. kind ( ) == io:: ErrorKind :: Interrupted => { }
97+ } ,
98+ Err ( ref e) if e. kind ( ) == io:: ErrorKind :: Interrupted => { } ,
9999 Err ( e) => return Err ( e) ,
100100 }
101101 }
@@ -162,15 +162,15 @@ where
162162 self . inner_sink . error ( "invalid byte sequence" . into ( ) ) ;
163163 self . inner_sink
164164 . process ( Tendril :: from_slice ( utf8:: REPLACEMENT_CHARACTER ) ) ;
165- }
165+ } ,
166166 }
167167 t. len ( ) - rest. len ( )
168168 } ) ;
169169 match resume_at {
170170 None => {
171171 self . incomplete = Some ( incomplete) ;
172172 return ;
173- }
173+ } ,
174174 Some ( resume_at) => t. pop_front ( resume_at as u32 ) ,
175175 }
176176 }
@@ -180,7 +180,7 @@ where
180180 debug_assert ! ( s. as_ptr( ) == t. as_ptr( ) ) ;
181181 debug_assert ! ( s. len( ) == t. len( ) ) ;
182182 Ok ( ( ) )
183- }
183+ } ,
184184 Err ( utf8:: DecodeError :: Invalid {
185185 valid_prefix,
186186 invalid_sequence,
@@ -192,21 +192,21 @@ where
192192 valid_prefix. len ( ) ,
193193 Err ( valid_prefix. len ( ) + invalid_sequence. len ( ) ) ,
194194 ) )
195- }
195+ } ,
196196 Err ( utf8:: DecodeError :: Incomplete {
197197 valid_prefix,
198198 incomplete_suffix,
199199 } ) => {
200200 debug_assert ! ( valid_prefix. as_ptr( ) == t. as_ptr( ) ) ;
201201 debug_assert ! ( valid_prefix. len( ) <= t. len( ) ) ;
202202 Err ( ( valid_prefix. len ( ) , Ok ( incomplete_suffix) ) )
203- }
203+ } ,
204204 } ;
205205 match unborrowed_result {
206206 Ok ( ( ) ) => {
207207 unsafe { self . inner_sink . process ( t. reinterpret_without_validating ( ) ) }
208208 return ;
209- }
209+ } ,
210210 Err ( ( valid_len, and_then) ) => {
211211 if valid_len > 0 {
212212 let subtendril = t. subtendril ( 0 , valid_len as u32 ) ;
@@ -219,15 +219,15 @@ where
219219 Ok ( incomplete) => {
220220 self . incomplete = Some ( incomplete) ;
221221 return ;
222- }
222+ } ,
223223 Err ( offset) => {
224224 self . inner_sink . error ( "invalid byte sequence" . into ( ) ) ;
225225 self . inner_sink
226226 . process ( Tendril :: from_slice ( utf8:: REPLACEMENT_CHARACTER ) ) ;
227227 t. pop_front ( offset as u32 ) ;
228- }
228+ } ,
229229 }
230- }
230+ } ,
231231 }
232232 }
233233 }
@@ -365,21 +365,21 @@ where
365365 debug_assert ! ( err. upto >= 0 ) ;
366366 t. pop_front ( err. upto as u32 ) ;
367367 // continue loop and process remainder of t
368- }
368+ } ,
369369 ( _, None ) => break ,
370370 }
371371 }
372372 if out. len ( ) > 0 {
373373 sink. process ( out) ;
374374 }
375- }
375+ } ,
376376 #[ cfg( feature = "encoding_rs" ) ]
377377 LossyDecoderInner :: EncodingRs ( ref mut decoder, ref mut sink) => {
378378 if t. is_empty ( ) {
379379 return ;
380380 }
381381 decode_to_sink ( t, decoder, sink, false ) ;
382- }
382+ } ,
383383 }
384384 }
385385
@@ -411,12 +411,12 @@ where
411411 sink. process ( out) ;
412412 }
413413 sink. finish ( )
414- }
414+ } ,
415415 #[ cfg( feature = "encoding_rs" ) ]
416416 LossyDecoderInner :: EncodingRs ( mut decoder, mut sink) => {
417417 decode_to_sink ( Tendril :: new ( ) , & mut decoder, & mut sink, true ) ;
418418 sink. finish ( )
419- }
419+ } ,
420420 }
421421 }
422422}
@@ -449,11 +449,11 @@ fn decode_to_sink<Sink, A>(
449449 }
450450 match result {
451451 DecoderResult :: InputEmpty => return ,
452- DecoderResult :: OutputFull => { }
452+ DecoderResult :: OutputFull => { } ,
453453 DecoderResult :: Malformed ( _, _) => {
454454 sink. error ( Cow :: Borrowed ( "invalid sequence" ) ) ;
455455 sink. process ( "\u{FFFD} " . into ( ) ) ;
456- }
456+ } ,
457457 }
458458 t. pop_front ( bytes_read as u32 ) ;
459459 if t. is_empty ( ) {
0 commit comments