Skip to content

Commit b699e21

Browse files
committed
Use a byte-string literal in the genetic-code test (fix CI clippy)
The current stable clippy flags `[b'A', b'T', b'C', b'G']` with the byte-str lint (can be written as `b"ATCG"`); under CI's -D warnings this failed the clippy gate. Switch to the byte-string literal; no behaviour change.
1 parent f68ff6e commit b699e21

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/genetic_code.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ mod tests {
208208
// Tables 1 and 11 should produce identical results for all 64 codons.
209209
let t1 = GeneticCode::new(1).unwrap();
210210
let t11 = GeneticCode::new(11).unwrap();
211-
let bases = [b'A', b'T', b'C', b'G'];
212-
for &a in &bases {
213-
for &b in &bases {
214-
for &c in &bases {
211+
let bases = b"ATCG";
212+
for &a in bases {
213+
for &b in bases {
214+
for &c in bases {
215215
let codon = [a, b, c];
216216
assert_eq!(
217217
t1.translate(&codon),

0 commit comments

Comments
 (0)