From 2e59cea2032a4c2c9a29f361fe280b5d6fa01136 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 8 Mar 2013 22:07:06 -0600 Subject: no reason this couldn't be a view --- rosalind/protein.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rosalind/protein.rs b/rosalind/protein.rs index 7d56093..815b9c0 100644 --- a/rosalind/protein.rs +++ b/rosalind/protein.rs @@ -9,7 +9,7 @@ fn translate(rna: &str) -> ~str { let mut protein = str::with_capacity(codons); for uint::range(0, codons) |i| { - let codon = str::slice(rna, i * 3, i * 3 + 3); + let codon = str::view(rna, i * 3, i * 3 + 3); let amino = translate_single(codon); if (amino == STOP) { break; -- cgit v1.2.3