Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
prettify map_or_else
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed Aug 2, 2016
1 parent 8b54b4f commit 99e2011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethcore/src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl Account {
using it will not fail.");

let item: U256 = match db.get(key){
Ok(x) => x.map_or_else(|| U256::zero(), decode),
Ok(x) => x.map_or_else(U256::zero, decode),
Err(e) => panic!("Encountered potential DB corruption: {}", e),
};
(Filth::Clean, item.into())
Expand Down

0 comments on commit 99e2011

Please sign in to comment.