-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasm: fix dump_to_idb lifetime issue
error[E0521]: borrowed data escapes outside of closure --> network/src/services/dump_peer_store.rs:43:24 | 42 | self.network_state.with_peer_store_mut(|peer_store| { | ---------- | | | `peer_store` is a reference that is only valid in the closure body | has type `&'1 mut PeerStore` 43 | let task = peer_store.dump_to_idb(path); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | `peer_store` escapes the closure body here | argument requires that `'1` must outlive `'static` Signed-off-by: Eval EXEC <execvy@gmail.com>
- Loading branch information
Showing
4 changed files
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters