From b37bb5b2c366b159913ff9e82fec5da99755b9d7 Mon Sep 17 00:00:00 2001 From: Nikolas Haimerl Date: Fri, 11 Aug 2023 11:42:20 +0000 Subject: [PATCH] clippy --- cycles-ledger/src/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cycles-ledger/src/storage.rs b/cycles-ledger/src/storage.rs index b5fc8f1..87e7e9f 100644 --- a/cycles-ledger/src/storage.rs +++ b/cycles-ledger/src/storage.rs @@ -283,7 +283,7 @@ pub fn deduplicate( .saturating_add(config::PERMITTED_DRIFT.as_nanos() as u64) < now { - if !mutate_state(|state| state.operations.remove(&tx_hash)).is_some() { + if mutate_state(|state| state.operations.remove(&tx_hash)).is_none() { ic_cdk::trap(&format!("Could not remove tx hash {:?}", tx_hash)) } } else {