Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Remove unused imports (#8722)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngotchac authored and niklasad1 committed May 28, 2018
1 parent 7d7d482 commit ed8425b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion util/network/src/lib.rs
Expand Up @@ -42,7 +42,7 @@ use std::sync::Arc;
use std::time::Duration;
use ipnetwork::{IpNetwork, IpNetworkError};
use ethkey::Secret;
use ethereum_types::{H256, H512};
use ethereum_types::H512;
use rlp::{Decodable, DecoderError, Rlp};

/// Protocol handler level packet id
Expand Down
4 changes: 2 additions & 2 deletions util/patricia_trie/src/triedb.rs
Expand Up @@ -21,7 +21,7 @@ use super::node::{Node, OwnedNode};
use super::lookup::Lookup;
use super::{Trie, TrieItem, TrieError, TrieIterator, Query};
use ethereum_types::H256;
use bytes::{ToPretty, Bytes};
use bytes::Bytes;

/// A `Trie` implementation using a generic `HashDB` backing database.
///
Expand Down Expand Up @@ -501,7 +501,7 @@ fn debug_output_supports_pretty_print() {
t.root().clone()
};
let t = TrieDB::new(&memdb, &root).unwrap();

assert_eq!(format!("{:?}", t), "TrieDB { hash_count: 0, root: Node::Extension { slice: 4, item: Node::Branch { nodes: [Node::Empty, Node::Branch { nodes: [Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Branch { nodes: [Node::Empty, Node::Leaf { slice: , value: [65, 65] }, Node::Leaf { slice: , value: [65, 66] }, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty], value: None }, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty], value: Some([65]) }, Node::Leaf { slice: , value: [66] }, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty, Node::Empty], value: None } } }");
assert_eq!(format!("{:#?}", t),
"TrieDB {
Expand Down

0 comments on commit ed8425b

Please sign in to comment.