Skip to content

Commit

Permalink
workaround for stable-to-beta lifetimes regression
Browse files Browse the repository at this point in the history
  • Loading branch information
mersinvald authored and Mike Lubinets committed Feb 11, 2019
1 parent 6f93fec commit 3ed6522
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stateful/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ impl<'b, D: DatabaseOwned> Stateful<'b, D> {
}

pub fn storage_state<'a>(&'a self, address: Address) -> Option<FixedSecureTrie<<D as Database<'a>>::Guard, H256, M256>> {
let state = self.state();
// Specify the full type as a workaround for https://github.com/rust-lang/rust/issues/55756
let state: FixedSecureTrie<<D as Database<'a>>::Guard, Address, Account> = self.state();
let account = state.get(&address);

match account {
Expand Down

0 comments on commit 3ed6522

Please sign in to comment.