From a88eef55cd2552cb49d47c274ed080feac649112 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 13 Mar 2013 22:50:02 -0500 Subject: fixes for rust 0.6 --- DNA.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'DNA.rs') 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"), } } } -- cgit v1.2.3-54-g00ecf