Fix a few warnings.

This commit is contained in:
whitequark 2017-09-22 10:01:59 +00:00
parent 7a2cd7842d
commit a9d6a9b7b8
2 changed files with 2 additions and 2 deletions

View File

@ -1375,7 +1375,7 @@ impl<'a> TcpSocket<'a> {
(Some(remote_last_ts), Some(timeout))
if !self.tx_buffer.is_empty() =>
Some(remote_last_ts + timeout),
(None, Some(timeout)) =>
(None, Some(_timeout)) =>
Some(0),
(_, _) =>
None

View File

@ -152,7 +152,7 @@ impl Assembler {
while index != self.contigs.len() && size != 0 {
let contig = self.contigs[index];
if let Some(new_offset) = offset.checked_sub(contig.total_size()) {
if offset >= contig.total_size() {
// The range being added does not cover this contig, skip it.
index += 1;
} else if offset == 0 && size >= contig.hole_size && index > 0 {