From 0944a75150514a1aa35f4fc34ad89d90354f5c49 Mon Sep 17 00:00:00 2001 From: bw-solana Date: Mon, 4 Mar 2024 18:03:19 +0000 Subject: [PATCH] clippy --- program-runtime/src/loaded_programs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program-runtime/src/loaded_programs.rs b/program-runtime/src/loaded_programs.rs index cf1017958cf4b8..f6163d63cd738c 100644 --- a/program-runtime/src/loaded_programs.rs +++ b/program-runtime/src/loaded_programs.rs @@ -1318,7 +1318,7 @@ mod tests { program, new_test_loaded_program_with_usage( *deployment_slot, - (*deployment_slot) + 2, + (*deployment_slot).saturating_add(2), AtomicU64::new(usage_counter), ), );