From 6b09eb8e17d1952a930e1411da85703c2c534dde Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 11 Aug 2015 22:14:29 -0700 Subject: [PATCH] Test fixes and rebase conflicts --- src/test/bench/shootout-fasta-redux.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/bench/shootout-fasta-redux.rs b/src/test/bench/shootout-fasta-redux.rs index f7e6149eeaa..963a007c685 100644 --- a/src/test/bench/shootout-fasta-redux.rs +++ b/src/test/bench/shootout-fasta-redux.rs @@ -90,7 +90,7 @@ fn sum_and_scale(a: &'static [AminoAcid]) -> Vec { let mut p = 0f32; let mut result: Vec = a.iter().map(|a_i| { - p += a_i.p; + p += a_i.p; AminoAcid { c: a_i.c, p: p * LOOKUP_SCALE } }).collect(); let result_len = result.len(); @@ -179,7 +179,7 @@ fn rng(&mut self, max: f32) -> f32 { fn nextc(&mut self) -> u8 { let r = self.rng(LOOKUP_SCALE); for i in (r as usize..LOOKUP_SIZE) { - if self.lookup[i].p >= r { + if self.lookup[i].p >= r { return self.lookup[i].c; } } @@ -212,7 +212,7 @@ fn main() { } else { 5 }; - + let stdout = io::stdout(); let mut out = stdout.lock(); -- GitLab