Update to Rust 1.35.0.

This commit is contained in:
Andreas Fackler 2019-06-11 09:57:31 +02:00
parent 61f4ed9800
commit 01d301d4fe
No known key found for this signature in database
GPG Key ID: E71D328943129E1C
4 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
language: rust
rust:
- 1.34.0
- 1.35.0
cache:
cargo: true
timeout: 1200

View File

@ -133,7 +133,7 @@ fn network_to_u32_is_correct() {
}
#[test]
#[allow(clippy::cyclomatic_complexity)]
#[allow(clippy::cognitive_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

@ -54,7 +54,7 @@ prop_compose! {
}
}
/// Proptest wrapper for `binary_agreement` that runs the test function on generated configurations.
// Proptest wrapper for `binary_agreement` that runs the test function on generated configurations.
proptest! {
#![proptest_config(ProptestConfig {
cases: 1, .. ProptestConfig::default()

View File

@ -72,7 +72,7 @@ prop_compose! {
}
}
/// Proptest wrapper for `do_drop_and_re_add`.
// Proptest wrapper for `do_drop_and_re_add`.
proptest! {
#![proptest_config(ProptestConfig::with_cases(1))]
#[test]
@ -85,7 +85,7 @@ proptest! {
/// Dynamic honey badger: Drop a validator node, demoting it to observer, then re-add it, all while
/// running a regular honey badger network.
// TODO: Add an observer node to the test network.
#[allow(clippy::needless_pass_by_value, clippy::cyclomatic_complexity)]
#[allow(clippy::needless_pass_by_value, clippy::cognitive_complexity)]
fn do_drop_and_re_add(cfg: TestConfig) {
// This returns an error in all but the first test.
let _ = env_logger::try_init();