提交 6b09eb8e 编写于 作者: A Alex Crichton

Test fixes and rebase conflicts

上级 fe3ab210
......@@ -90,7 +90,7 @@
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 @@ 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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册