summaryrefslogtreecommitdiffstats
path: root/DNA.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-03-13 22:50:02 -0500
committerJesse Luehrs <doy@tozt.net>2013-03-13 22:50:02 -0500
commita88eef55cd2552cb49d47c274ed080feac649112 (patch)
tree646d388d30745543ec79eb2a365b0f74fe129226 /DNA.rs
parent00e7efaee4bb250758563289ef509101b43715f1 (diff)
downloadrosalind-master.tar.gz
rosalind-master.zip
fixes for rust 0.6HEADmaster
Diffstat (limited to 'DNA.rs')
-rw-r--r--DNA.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/DNA.rs b/DNA.rs
index 12e60d7..f335645 100644
--- a/DNA.rs
+++ b/DNA.rs
@@ -9,7 +9,7 @@ fn count_nucleotides(dna: &str) -> (int, int, int, int) {
'C' => c += 1,
'G' => g += 1,
'T' => t += 1,
- _ => fail ~"Unexpected character found"
+ _ => fail!(~"Unexpected character found"),
}
}
(a, c, g, t)
@@ -23,7 +23,7 @@ fn count_nucleotides_2(dna: &str) -> (int, int, int, int) {
'C' => (a, c + 1, g, t),
'G' => (a, c, g + 1, t),
'T' => (a, c, g, t + 1),
- _ => fail ~"Unexpected character found"
+ _ => fail!(~"Unexpected character found"),
}
}
}