Minor simplification

This commit is contained in:
Gav Wood 2016-08-01 10:14:12 -07:00 committed by GitHub
parent e99753d6e3
commit de531c9a1e

View File

@ -96,7 +96,7 @@ impl From<ethjson::spec::Account> for PodAccount {
PodAccount {
balance: a.balance.map_or_else(U256::zero, Into::into),
nonce: a.nonce.map_or_else(U256::zero, Into::into),
code: a.code.map(|c| c.into()).or(Some(Vec::new())),
code: a.code.map(Into::into).or(Some(Vec::new())),
storage: BTreeMap::new()
}
}