mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 14:45:42 +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,10 +253,11 @@ impl<B: BlockT> Storage for WitnessStorage<B> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for x in TrieDBIterator::new_prefixed(&trie, prefix).expect("Creates trie iterator") {
|
for x in TrieDBIterator::new_prefixed(&trie, prefix).expect("Creates trie iterator") {
|
||||||
let (key, _) = x.expect("Iterating trie iterator");
|
if let Ok((key, _)) = x {
|
||||||
self.overlay.insert(key, None);
|
self.overlay.insert(key, None);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn storage_append(&mut self, key: &[u8], value: Vec<u8>) {
|
fn storage_append(&mut self, key: &[u8], value: Vec<u8>) {
|
||||||
let value_vec = sp_std::vec![EncodeOpaqueValue(value)];
|
let value_vec = sp_std::vec![EncodeOpaqueValue(value)];
|
||||||
|
|||||||
Reference in New Issue
Block a user