Fixing compilation on stable

This commit is contained in:
Tomasz Drwięga
2016-11-28 17:05:37 +01:00
parent 2b3d100de2
commit 64b1b898f1
14 changed files with 29 additions and 1 deletions

View File

@@ -507,6 +507,7 @@ mod tests {
use std::io::{Read, Write, Error, Cursor, ErrorKind};
use mio::{Ready};
use std::collections::VecDeque;
use util::bytes::Bytes;
use devtools::*;
use io::*;

View File

@@ -555,6 +555,11 @@ impl Discovery {
#[cfg(test)]
mod tests {
use super::*;
use std::net::{SocketAddr};
use util::sha3::Hashable;
use util::FixedHash;
use node_table::{Node, NodeId, NodeEndpoint};
use std::str::FromStr;
use rustc_serialize::hex::FromHex;
use ethkey::{Random, Generator};

View File

@@ -333,6 +333,7 @@ mod test {
use std::sync::Arc;
use rustc_serialize::hex::FromHex;
use super::*;
use util::hash::{H256, FixedHash};
use io::*;
use mio::tcp::TcpStream;
use stats::NetworkStats;

View File

@@ -357,6 +357,8 @@ pub fn is_valid_node_url(url: &str) -> bool {
#[cfg(test)]
mod tests {
use super::*;
use std::net::{SocketAddr, SocketAddrV4, Ipv4Addr};
use util::H512;
use std::str::FromStr;
use devtools::*;
use AllowIP;