From f19d044e7ce5ef286f9d722004132067bd038103 Mon Sep 17 00:00:00 2001 From: debris Date: Fri, 11 Dec 2015 03:49:15 +0100 Subject: [PATCH] renamed new_pre_existing to new_existing --- src/trie.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trie.rs b/src/trie.rs index 2909e1314..94ca8c7d7 100644 --- a/src/trie.rs +++ b/src/trie.rs @@ -329,7 +329,7 @@ impl<'db, T> TrieDB<'db, T> where T: 'db + HashDB { /// Create a new trie with the backing database `db` and `root` /// Panics, if `root` does not exist - pub fn new_pre_existing(db: &'db mut T, root: &'db mut H256) -> Self { + pub fn new_existing(db: &'db mut T, root: &'db mut H256) -> Self { assert!(db.exists(root)); TrieDB { db: db, @@ -1361,7 +1361,7 @@ mod tests { } { - let _ = TrieDB::new_pre_existing(&mut db, &mut root); + let _ = TrieDB::new_existing(&mut db, &mut root); } } }