Migrate network, primitives and rpc to the 2018 edition (#1710)

This commit is contained in:
Stanislav Tkach
2019-02-06 20:07:48 +02:00
committed by Gav Wood
parent 3a4dda7beb
commit e60be1ad12
43 changed files with 203 additions and 278 deletions
+4 -3
View File
@@ -16,10 +16,11 @@
//! System RPC module errors.
use rpc;
use error_chain::*;
use errors;
use system::helpers::Health;
use crate::rpc;
use crate::errors;
use crate::system::helpers::Health;
error_chain! {
errors {
+1
View File
@@ -19,6 +19,7 @@ use super::*;
use network::{self, SyncState, SyncStatus, ProtocolStatus, NodeIndex, PeerId, PeerInfo as NetworkPeerInfo, PublicKey};
use network::config::Roles;
use test_client::runtime::Block;
use assert_matches::assert_matches;
#[derive(Default)]
struct Status {