Address clippy arith lints (#1038)

This commit is contained in:
Paul Hauner
2020-04-22 14:46:19 +10:00
committed by GitHub
parent ca538e887e
commit 018a666731
6 changed files with 33 additions and 15 deletions

View File

@@ -507,10 +507,11 @@ pub fn publish_attestations<T: BeaconChainTypes>(
}
}
})?;
Ok(attestations)
Ok((attestations, beacon_chain))
})
.and_then(|attestations| {
publish_raw_attestations_to_network::<T>(network_chan, attestations)
.and_then(|(attestations, beacon_chain)| {
publish_raw_attestations_to_network::<T>(network_chan, attestations, &beacon_chain.spec)
})
.and_then(|_| response_builder?.body_no_ssz(&())),
)