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
+3 -2
View File
@@ -17,7 +17,8 @@
//! Definition of a sandbox environment.
#[cfg(test)]
use codec::Encode;
use parity_codec::Encode;
use parity_codec_derive::{Encode, Decode};
use rstd::vec::Vec;
/// Error error that can be returned from host function.
@@ -185,7 +186,7 @@ pub const ERR_EXECUTION: u32 = -3i32 as u32;
mod tests {
use super::*;
use std::fmt;
use codec::Codec;
use parity_codec::Codec;
fn roundtrip<S: Codec + PartialEq + fmt::Debug>(s: S) {
let encoded = s.encode();