Skip to content

Commit f7fef2a

Browse files
authored
Merge pull request #2328 from ljedrz/cleanup/indexmap_warns
Avoid deprecation warnings from indexmap
2 parents 2127981 + 8125818 commit f7fef2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ledger/store/src/program/finalize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ pub trait FinalizeStorage<N: Network>: 'static + Clone + Send + Sync {
314314
None => bail!("Illegal operation: program ID '{program_id}' is not initialized - cannot remove mapping."),
315315
};
316316
// Remove the mapping name.
317-
if !mapping_names.remove(&mapping_name) {
317+
if !mapping_names.shift_remove(&mapping_name) {
318318
bail!("Illegal operation: mapping '{mapping_name}' does not exist in storage - cannot remove mapping.");
319319
}
320320

synthesizer/process/src/stack/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,13 +418,13 @@ impl<N: Network> Stack<N> {
418418
/// Removes the proving key for the given function name.
419419
#[inline]
420420
pub fn remove_proving_key(&self, function_name: &Identifier<N>) {
421-
self.proving_keys.write().remove(function_name);
421+
self.proving_keys.write().shift_remove(function_name);
422422
}
423423

424424
/// Removes the verifying key for the given function name.
425425
#[inline]
426426
pub fn remove_verifying_key(&self, function_name: &Identifier<N>) {
427-
self.verifying_keys.write().remove(function_name);
427+
self.verifying_keys.write().shift_remove(function_name);
428428
}
429429
}
430430

0 commit comments

Comments
 (0)