cleanup, warnings

This commit is contained in:
Nikolay Volf 2016-02-10 01:11:22 +03:00
parent 2982c7973e
commit dabce9ab45
2 changed files with 3 additions and 8 deletions

View File

@ -265,12 +265,10 @@ mod tests {
use common::*;
use state::*;
use engine::*;
use executive::*;
use evm::{self, Schedule, Ext, ContractCreateResult, MessageCallResult};
use evm::{Ext};
use substate::*;
use tests::helpers::*;
use super::*;
use spec::*;
fn get_test_origin() -> OriginInfo {
OriginInfo {
@ -295,7 +293,6 @@ mod tests {
struct TestSetup {
state: GuardedTempResult<State>,
spec: Spec,
engine: Box<Engine>,
sub_state: Substate,
env_info: EnvInfo
@ -303,11 +300,9 @@ mod tests {
impl TestSetup {
fn new() -> TestSetup {
let spec = get_test_spec();
TestSetup {
state: get_temp_state(),
spec: get_test_spec(),
engine: spec.to_engine().unwrap(),
engine: get_test_spec().to_engine().unwrap(),
sub_state: Substate::new(),
env_info: get_test_env_info()
}

View File

@ -58,7 +58,7 @@ mod tests {
#[test]
fn created() {
let mut sub_state = Substate::new();
let sub_state = Substate::new();
assert_eq!(sub_state.suicides.len(), 0);
}