Fix several warnings and remove some forbid(warnings) (#2874)

This commit is contained in:
Bastian Köcher
2019-06-15 10:30:04 +02:00
committed by Gavin Wood
parent ecf25c9289
commit e09045bde2
6 changed files with 13 additions and 19 deletions
+3 -3
View File
@@ -534,7 +534,7 @@ fn run_to_completion_with<F>(
.map(|_| ())
.map_err(|_| ());
runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
let _ = runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
let highest_finalized = *highest_finalized.read();
highest_finalized
@@ -628,7 +628,7 @@ fn finalize_3_voters_1_full_observer() {
.map(|_| ())
.map_err(|_| ());
runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
let _ = runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
}
#[test]
@@ -802,7 +802,7 @@ fn transition_3_voters_twice_1_full_observer() {
.map(|_| ())
.map_err(|_| ());
runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
let _ = runtime.block_on(wait_for.select(drive_to_completion).map_err(|_| ())).unwrap();
}
#[test]