From b4de20e9c021c1f1a72a5c33e66e54d36d5e120d Mon Sep 17 00:00:00 2001 From: ~litlep-nibbyt <9344275+litlep-nibbyt@users.noreply.github.com> Date: Mon, 21 Oct 2024 19:47:24 -0400 Subject: [PATCH] clean up of Cold Nounable PR (#277) * remove cold into_noun prints * deref the reference --- rust/sword/src/jets/cold.rs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/rust/sword/src/jets/cold.rs b/rust/sword/src/jets/cold.rs index 96c2356..02fecbf 100644 --- a/rust/sword/src/jets/cold.rs +++ b/rust/sword/src/jets/cold.rs @@ -1033,7 +1033,7 @@ impl Nounable for Hamt { for slice in reverse { for (key, value) in slice { let value_noun = value.into_noun(stack); - let items = T(stack, &[key, value_noun]); + let items = T(stack, &[*key, value_noun]); list = T(stack, &[items, list]); } } @@ -1077,20 +1077,6 @@ impl Nounable for Cold { let mut root_to_paths_noun = D(0); let mut battery_to_paths_noun = D(0); let mut path_to_batteries_noun = D(0); - unsafe { - println!( - "root_to_paths.iter().count(): {}", - (*cold_mem).root_to_paths.iter().count() - ); - println!( - "battery_to_paths.iter().count(): {}", - (*cold_mem).battery_to_paths.iter().count() - ); - println!( - "path_to_batteries.iter().count(): {}", - (*cold_mem).path_to_batteries.iter().count() - ); - } unsafe { for slice in (*cold_mem).root_to_paths.iter() { for (root, paths) in slice {