File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1375,7 +1375,7 @@ impl<'a> TcpSocket<'a> {
1375
1375
( Some ( remote_last_ts) , Some ( timeout) )
1376
1376
if !self . tx_buffer . is_empty ( ) =>
1377
1377
Some ( remote_last_ts + timeout) ,
1378
- ( None , Some ( timeout ) ) =>
1378
+ ( None , Some ( _timeout ) ) =>
1379
1379
Some ( 0 ) ,
1380
1380
( _, _) =>
1381
1381
None
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl Assembler {
152
152
while index != self . contigs . len ( ) && size != 0 {
153
153
let contig = self . contigs [ index] ;
154
154
155
- if let Some ( new_offset ) = offset . checked_sub ( contig. total_size ( ) ) {
155
+ if offset >= contig. total_size ( ) {
156
156
// The range being added does not cover this contig, skip it.
157
157
index += 1 ;
158
158
} else if offset == 0 && size >= contig. hole_size && index > 0 {
@@ -207,10 +207,8 @@ impl Assembler {
207
207
if front. has_hole ( ) {
208
208
None
209
209
} else {
210
- println ! ( "{}" , self ) ; {
211
210
let last_hole = self . remove_contig_at ( 0 ) ;
212
211
last_hole. hole_size += front. data_size ;
213
- } println ! ( "{}" , self ) ;
214
212
215
213
debug_assert ! ( front. data_size > 0 ) ;
216
214
Some ( front. data_size )
You can’t perform that action at this time.
0 commit comments