mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 01:38:04 +00:00
Try to workaround the invalid compilation (#159)
There is probably some bug in rustc which result in an invalid compilation when using an `expect` at the given position. I'm still not sure why this is happening, but this fix should fix it for now.
This commit is contained in:
@@ -253,8 +253,9 @@ impl<B: BlockT> Storage for WitnessStorage<B> {
|
||||
};
|
||||
|
||||
for x in TrieDBIterator::new_prefixed(&trie, prefix).expect("Creates trie iterator") {
|
||||
let (key, _) = x.expect("Iterating trie iterator");
|
||||
self.overlay.insert(key, None);
|
||||
if let Ok((key, _)) = x {
|
||||
self.overlay.insert(key, None);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user