Skip to content

Commit

Permalink
rust clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-eyes committed Apr 12, 2022
1 parent 335149f commit 6f5245b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/core/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,10 @@ impl Iterator for SeqToHashes {
self.hashes_buffer.clear();
self.kmer_index = self.max_index;
return Some(Ok(0));
} else {
let curr_idx = self.translate_iter_step;
self.translate_iter_step += 1;
return Some(Ok(self.hashes_buffer[curr_idx]));
}
let curr_idx = self.translate_iter_step;
self.translate_iter_step += 1;
Some(Ok(self.hashes_buffer[curr_idx]))
}
} else {
// Processing protein
Expand Down

0 comments on commit 6f5245b

Please sign in to comment.