Removed redundant struct bounds and unnecessary data copying (#9096)

* Removed redundant struct bounds and unnecessary data copying

* Updated docs, removed redundant bindings
This commit is contained in:
Marek Kotewicz
2018-07-15 11:01:47 +02:00
committed by GitHub
parent 9dc512349a
commit f826ac35e3
5 changed files with 68 additions and 56 deletions

View File

@@ -97,7 +97,7 @@ fn can_trace_block_and_uncle_reward() {
last_header = view!(BlockView, &root_block.rlp_bytes()).header();
let root_header = last_header.clone();
db = root_block.drain();
db = root_block.drain().state.drop().1;
last_hashes.push(last_header.hash());
@@ -125,7 +125,7 @@ fn can_trace_block_and_uncle_reward() {
}
last_header = view!(BlockView,&parent_block.rlp_bytes()).header();
db = parent_block.drain();
db = parent_block.drain().state.drop().1;
last_hashes.push(last_header.hash());