Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Sep 25, 2024
1 parent 529a3a5 commit 6ad6e99
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,7 @@ impl KmerCountTable {
let substr_b_rc = revcomp(&seqb[start..start + ksize]);
let substr_rc =
std::str::from_utf8(&substr_b_rc).expect("invalid utf-8 sequence for rev comp");
let hashval = hasher
.next()
.expect("should not run out of hashes");
let hashval = hasher.next().expect("should not run out of hashes");

// Three options:
// * good kmer, all is well, store canonical k-mer and hashval;
Expand All @@ -556,8 +554,7 @@ impl KmerCountTable {
v.push(("".to_owned(), 0));
}
} else {
let msg = format!("bad k-mer at position {}: {}",
start, substr);
let msg = format!("bad k-mer at position {}: {}", start, substr);
return Err(PyValueError::new_err(msg));
}
}
Expand Down

0 comments on commit 6ad6e99

Please sign in to comment.