From 666d0e312428c4db7651914477034310e795aa27 Mon Sep 17 00:00:00 2001 From: MRain Date: Wed, 24 Jan 2024 12:37:55 -0500 Subject: [PATCH] fix lint --- crates/task-impls/src/consensus.rs | 3 +-- crates/testing/tests/unreliable_network.rs | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/crates/task-impls/src/consensus.rs b/crates/task-impls/src/consensus.rs index e2848584c3..b2bb79f895 100644 --- a/crates/task-impls/src/consensus.rs +++ b/crates/task-impls/src/consensus.rs @@ -558,8 +558,7 @@ impl, A: ConsensusApi + let liveness_check = justify_qc.get_view_number() > consensus.locked_view; let high_qc = consensus.high_qc.clone(); - let locked_view = consensus.locked_view; - + let locked_view = consensus.locked_view; drop(consensus); diff --git a/crates/testing/tests/unreliable_network.rs b/crates/testing/tests/unreliable_network.rs index c2e4a56249..e39ae11e98 100644 --- a/crates/testing/tests/unreliable_network.rs +++ b/crates/testing/tests/unreliable_network.rs @@ -44,7 +44,7 @@ async fn libp2p_network_sync() { .gen_launcher::(0) .launch() .run_test() - .await + .await; } #[cfg(test)] @@ -122,7 +122,7 @@ async fn libp2p_network_async() { .gen_launcher::(0) .launch() .run_test() - .await + .await; } #[cfg(test)] @@ -260,7 +260,7 @@ async fn libp2p_network_partially_sync() { .gen_launcher::(0) .launch() .run_test() - .await + .await; } #[cfg(test)] @@ -339,5 +339,5 @@ async fn libp2p_network_chaos() { .gen_launcher::(0) .launch() .run_test() - .await + .await; }