Tidy, fix clippy lints

This commit is contained in:
Paul Hauner
2019-06-24 09:22:40 +10:00
parent 8e13237b7f
commit 3a196f3fdc
2 changed files with 18 additions and 40 deletions

View File

@@ -240,17 +240,6 @@ mod test {
.expect(&format!("should set state_b slot {}", slot));
}
/*
for root in &mut state_a.latest_state_roots[..] {
state_a.set_state_root(slots.next().unwrap(), hashes.next().unwrap());
// *root = hashes.next().unwrap()
}
for root in &mut state_b.latest_state_roots[..] {
state_b.set_state_root(slots.next().unwrap(), hashes.next().unwrap());
*root = hashes.next().unwrap()
}
*/
let state_a_root = Hash256::from(slots_per_historical_root as u64);
let state_b_root = Hash256::from(slots_per_historical_root as u64 * 2);