mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-01 23:07:05 +00:00
Use mem::take instead of mem::replace where appropriate (#5846)
* replace replace with take * Update client/api/src/cht.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Update client/api/src/cht.rs Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
1 parent
c3a6d8a881
commit
c09bb1f350
11 files changed
+21
-21
No files matched your search
@@ -341,7 +341,7 @@ pub(crate) fn prove_finality<Block: BlockT, B: BlockchainBackend<Block>, J>(
|
||||
let proof_fragment = FinalityProofFragment {
|
||||
block: current,
|
||||
justification,
|
||||
unknown_headers: ::std::mem::replace(&mut unknown_headers, Vec::new()),
|
||||
unknown_headers: ::std::mem::take(&mut unknown_headers),
|
||||
authorities_proof: new_authorities_proof,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user