diff --git a/program-runtime/src/loaded_programs.rs b/program-runtime/src/loaded_programs.rs index 4677cbf04d79ac..9fd472c2d08c4a 100644 --- a/program-runtime/src/loaded_programs.rs +++ b/program-runtime/src/loaded_programs.rs @@ -582,7 +582,7 @@ impl LoadedPrograms { pub fn unload_all_programs(&mut self) { let keys = self.entries.keys().copied().collect::>(); - keys.iter().for_each(|key| self.unload_program(&key)); + keys.iter().for_each(|key| self.unload_program(key)); } fn unload_program_entries<'a>(