Obvious typo fix.

This commit is contained in:
Gav Wood
2016-03-11 13:21:53 +01:00
parent d71c5d4c17
commit 2a856a13f0
5 changed files with 16 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ use std::env;
/// exclusive actions.
pub trait JournalDB : HashDB + Sync + Send {
/// Return a copy of ourself, in a box.
fn spawn(&self) -> Box<Box<JournalDB>>;
fn spawn(&self) -> Box<JournalDB>;
/// Returns heap memory size used
fn mem_used(&self) -> usize;
@@ -418,7 +418,7 @@ impl HashDB for OptionOneDB {
}
impl JournalDB for OptionOneDB {
fn spawn(&self) -> Box<Box<JournalDB>> {
fn spawn(&self) -> Box<JournalDB> {
Box::new(OptionOneDB {
overlay: MemoryDB::new(),
backing: self.backing.clone(),