We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Default
1 parent 9b5a423 commit 15af515Copy full SHA for 15af515
1 file changed
state/src/tests.rs
@@ -52,7 +52,7 @@ pub mod helpers {
52
/// Creates new state with empty state root
53
/// Used for tests.
54
pub fn empty_top_state(mut db: StateDB) -> TopLevelState {
55
- let mut root = H256::new();
+ let mut root = H256::default();
56
// init trie and reset root too null
57
let _ = TrieFactory::create(db.as_hashdb_mut(), &mut root);
58
@@ -62,7 +62,7 @@ pub mod helpers {
62
63
64
pub fn empty_top_state_with_metadata(mut db: StateDB, params: CommonParams) -> TopLevelState {
65
66
67
{
68
let mut t = TrieFactory::create(db.as_hashdb_mut(), &mut root);
0 commit comments