Upgrade to Rust 1.30.0.

This commit is contained in:
Andreas Fackler 2018-10-27 17:44:14 +02:00 committed by Andreas Fackler
parent 4560070fec
commit e1038c66ba
5 changed files with 7 additions and 9 deletions

View File

@ -1,6 +1,6 @@
language: rust
rust:
- 1.29.0
- 1.30.0
cache:
cargo: true
timeout: 1200

4
ci.sh
View File

@ -9,8 +9,8 @@ export RUSTFLAGS="-D warnings -C target-cpu=native"
# Currently, mlocking secrets is disabled due to secure memory limit issues.
export MLOCK_SECRETS=false
cargo clippy --all-targets -- --deny clippy
cargo clippy --all-features --all-targets -- --deny clippy
cargo clippy --all-targets -- --deny clippy::all
cargo clippy --all-features --all-targets -- --deny clippy::all
cargo fmt -- --check
# We only test with mocktography, to ensure tests aren't unreasonably long.

View File

@ -149,7 +149,7 @@ fn do_drop_and_readd(cfg: TestConfig) {
net.correct_nodes().map(|n| *n.id()).collect();
let mut expected_outputs: collections::BTreeMap<_, collections::BTreeSet<_>> = net
.correct_nodes()
.map(|n| (*n.id(), (0..10).into_iter().collect()))
.map(|n| (*n.id(), (0..10).collect()))
.collect();
// Run the network:

View File

@ -181,6 +181,7 @@ fn network_to_u32_is_correct() {
}
#[test]
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
fn network_from_u32_is_correct() {
assert_eq!(NetworkDimension::new(1, 0), NetworkDimension::from(0u32));
assert_eq!(NetworkDimension::new(2, 0), NetworkDimension::from(1u32));

View File

@ -110,11 +110,8 @@ fn test_subset_5_nodes_different_proposed_values() {
Vec::from("Delta"),
Vec::from("Echo"),
];
let proposals: BTreeMap<NodeId, ProposedValue> = (0..5)
.into_iter()
.map(NodeId)
.zip(proposed_values)
.collect();
let proposals: BTreeMap<NodeId, ProposedValue> =
(0..5).map(NodeId).zip(proposed_values).collect();
let adversary = |_| SilentAdversary::new(MessageScheduler::Random);
let network = new_network(5, 0, adversary);
test_subset(network, &proposals);