mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-25 08:21:10 +00:00
relax translate closure to FnMut (#8019)
This commit is contained in:
@@ -383,7 +383,7 @@ impl<
|
||||
iterator
|
||||
}
|
||||
|
||||
fn translate<O: Decode, F: Fn(K1, K2, O) -> Option<V>>(f: F) {
|
||||
fn translate<O: Decode, F: FnMut(K1, K2, O) -> Option<V>>(mut f: F) {
|
||||
let prefix = G::prefix_hash();
|
||||
let mut previous_key = prefix.clone();
|
||||
while let Some(next) = sp_io::storage::next_key(&previous_key)
|
||||
|
||||
@@ -162,7 +162,7 @@ impl<
|
||||
iterator
|
||||
}
|
||||
|
||||
fn translate<O: Decode, F: Fn(K, O) -> Option<V>>(f: F) {
|
||||
fn translate<O: Decode, F: FnMut(K, O) -> Option<V>>(mut f: F) {
|
||||
let prefix = G::prefix_hash();
|
||||
let mut previous_key = prefix.clone();
|
||||
while let Some(next) = sp_io::storage::next_key(&previous_key)
|
||||
|
||||
Reference in New Issue
Block a user