Place Sync/Send in trait.

This commit is contained in:
Gav Wood
2016-03-11 13:19:10 +01:00
parent e461916f5a
commit d71c5d4c17
5 changed files with 17 additions and 17 deletions

View File

@@ -250,7 +250,7 @@ pub fn generate_dummy_empty_blockchain() -> GuardedTempResult<BlockChain> {
}
}
pub fn get_temp_journal_db() -> GuardedTempResult<Box<JournalDB + Send>> {
pub fn get_temp_journal_db() -> GuardedTempResult<Box<Box<JournalDB>>> {
let temp = RandomTempPath::new();
let journal_db = Box::new(OptionOneDB::new(temp.as_str()));
GuardedTempResult {
@@ -268,7 +268,7 @@ pub fn get_temp_state() -> GuardedTempResult<State> {
}
}
pub fn get_temp_journal_db_in(path: &Path) -> Box<JournalDB + Send> {
pub fn get_temp_journal_db_in(path: &Path) -> Box<Box<JournalDB>> {
Box::new(OptionOneDB::new(path.to_str().unwrap()))
}