sweep most unwraps from ethcore crate, dapps crate (#2762)
* sweep most unwraps from ethcore crate * purge unwrap from dapps server * whitespace [ci:none]
This commit is contained in:
committed by
Gav Wood
parent
866ab9c7a3
commit
96f4c10453
@@ -150,7 +150,8 @@ impl Spec {
|
||||
if self.state_root_memo.read().is_none() {
|
||||
*self.state_root_memo.write() = Some(self.genesis_state.root());
|
||||
}
|
||||
self.state_root_memo.read().as_ref().unwrap().clone()
|
||||
self.state_root_memo.read().as_ref().cloned()
|
||||
.expect("state root memo ensured to be set at this point; qed")
|
||||
}
|
||||
|
||||
/// Get the known knodes of the network in enode format.
|
||||
|
||||
Reference in New Issue
Block a user