Fixing clippy warnings 2 (#2961)

This commit is contained in:
Tomasz Drwięga
2016-10-29 13:08:49 +02:00
committed by Gav Wood
parent 9e82eeccfe
commit f17cad9dff
6 changed files with 7 additions and 6 deletions

View File

@@ -133,7 +133,7 @@ impl<'db> TrieDB<'db> {
}
/// Get the data of the root node.
fn root_data<'a, R: 'a + Recorder>(&self, r: &'a mut R) -> super::Result<DBValue> {
fn root_data<R: Recorder>(&self, r: &mut R) -> super::Result<DBValue> {
self.db.get(self.root).ok_or_else(|| Box::new(TrieError::InvalidStateRoot(*self.root)))
.map(|node| { r.record(self.root, &*node, 0); node })
}