clean up of Cold Nounable PR (#277)

* remove cold into_noun prints

* deref the reference
This commit is contained in:
~litlep-nibbyt 2024-10-21 19:47:24 -04:00 committed by GitHub
parent f740d85336
commit b4de20e9c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1033,7 +1033,7 @@ impl<T: Nounable + Copy + mem::Preserve> Nounable for Hamt<T> {
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 {