fix test compilation

This commit is contained in:
Nikolay Volf 2016-03-11 18:54:28 +04:00
parent 8d67316ece
commit 04af38bb0d
2 changed files with 3 additions and 1 deletions

View File

@ -166,6 +166,7 @@ mod tests {
use common::*; use common::*;
use super::*; use super::*;
use hashdb::*; use hashdb::*;
use journaldb::traits::JournalDB;
#[test] #[test]
fn insert_same_in_fork() { fn insert_same_in_fork() {

View File

@ -61,7 +61,7 @@ impl OptionOneDB {
} else { } else {
backing.put(&VERSION_KEY, &encode(&DB_VERSION)).expect("Error writing version to database"); backing.put(&VERSION_KEY, &encode(&DB_VERSION)).expect("Error writing version to database");
} }
let counters = Some(Arc::new(RwLock::new(OptionOneDB::read_counters(&backing)))); let counters = Some(Arc::new(RwLock::new(OptionOneDB::read_counters(&backing))));
OptionOneDB { OptionOneDB {
overlay: MemoryDB::new(), overlay: MemoryDB::new(),
@ -383,6 +383,7 @@ mod tests {
use common::*; use common::*;
use super::*; use super::*;
use hashdb::*; use hashdb::*;
use journaldb::traits::JournalDB;
#[test] #[test]
fn insert_same_in_fork() { fn insert_same_in_fork() {