diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-08-11 22:14:29 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-08-11 22:42:22 -0700 |
| commit | 6b09eb8e17d1952a930e1411da85703c2c534dde (patch) | |
| tree | f3d54534ff69927186d3b2a6e892544899b77716 | |
| parent | fe3ab2105402f89c9c074142d79b7e560463f19b (diff) | |
| download | rust-6b09eb8e17d1952a930e1411da85703c2c534dde.tar.gz rust-6b09eb8e17d1952a930e1411da85703c2c534dde.zip | |
Test fixes and rebase conflicts
| -rw-r--r-- | src/test/bench/shootout-fasta-redux.rs | 6 |
1 files 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 @@ static HOMO_SAPIENS: [AminoAcid;4] = [ fn sum_and_scale(a: &'static [AminoAcid]) -> Vec<AminoAcid> { let mut p = 0f32; let mut result: Vec<AminoAcid> = 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 @@ impl<'a, W: Write> RandomFasta<'a, W> { 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(); |
