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
+1 -5
View File
@@ -51,15 +51,11 @@
//! number (this is num(signal) + N). When finalizing a block, we either apply
//! or prune any signaled changes based on whether the signaling block is
//! included in the newly-finalized chain.
#![forbid(warnings)]
use futures::prelude::*;
use log::{debug, info, warn};
use futures::sync::mpsc;
use client::{
BlockchainEvents, CallExecutor, Client, backend::Backend,
error::Error as ClientError,
};
use client::{BlockchainEvents, CallExecutor, Client, backend::Backend, error::Error as ClientError};
use client::blockchain::HeaderBackend;
use parity_codec::Encode;
use runtime_primitives::traits::{
+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]